com.intel.analytics.bigdl.dataset

TensorSample

class TensorSample[T] extends Sample[T]

A kind of Sample who hold both DenseTensor and SparseTensor as features.

T

numeric type

Linear Supertypes
Sample[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TensorSample
  2. Sample
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): TensorSample.this.type

    returns

    A deep clone

    Definition Classes
    Sample → AnyRef
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def feature(index: Int)(implicit ev: TensorNumeric[T]): Tensor[T]

    Get feature tensor for given index

    Get feature tensor for given index

    index

    index of specific sample

    Definition Classes
    TensorSampleSample
  11. def feature()(implicit ev: TensorNumeric[T]): Tensor[T]

    Get feature tensor, for one feature Sample only.

    Get feature tensor, for one feature Sample only. You don't need to override this, because we have add a default implement to throw exception.

    returns

    feature tensor

    Definition Classes
    TensorSampleSample
  12. def featureLength(index: Int): Int

    First dimension length of index-th feature.

    First dimension length of index-th feature. This function could be used to sort samples in DataSet.

    returns

    Definition Classes
    TensorSampleSample
  13. val featureSize: Array[Array[Int]]

    Attributes
    protected
  14. val features: Array[Tensor[T]]

    feature tensors

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getData(): Array[T]

    Get data

    Get data

    returns

    data

    Definition Classes
    TensorSampleSample
  18. def getFeatureSize(): Array[Array[Int]]

    Get feature sizes

    Get feature sizes

    returns

    feature sizes

    Definition Classes
    TensorSampleSample
  19. def getLabelSize(): Array[Array[Int]]

    Get label sizes

    Get label sizes

    returns

    label sizes

    Definition Classes
    TensorSampleSample
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def label(index: Int)(implicit ev: TensorNumeric[T]): Tensor[T]

    Get label tensor for given index

    Get label tensor for given index

    index

    index of specific sample

    Definition Classes
    TensorSampleSample
  23. def label()(implicit ev: TensorNumeric[T]): Tensor[T]

    Get label tensor, for one label Sample only.

    Get label tensor, for one label Sample only. You don't need to override this, because we have add a default implement to throw exception.

    returns

    label tensor

    Definition Classes
    TensorSampleSample
  24. def labelLength(index: Int): Int

    First dimension length of index-th label.

    First dimension length of index-th label. This function could be used to find the longest label.

    returns

    Definition Classes
    TensorSampleSample
  25. val labelSize: Array[Array[Int]]

    Attributes
    protected
  26. val labels: Array[Tensor[T]]

    label tensors

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def numFeature(): Int

    Number of tensors in feature

    Number of tensors in feature

    returns

    number of tensors in feature

    Definition Classes
    TensorSampleSample
  31. def numLabel(): Int

    Number of tensors in label

    Number of tensors in label

    returns

    number of tensors in label

    Definition Classes
    TensorSampleSample
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def set(featureData: Array[T], labelData: Array[T], featureSize: Array[Int], labelSize: Array[Int])(implicit ev: TensorNumeric[T]): Sample[T]

    Set data of feature and label.

    Set data of feature and label.

    featureData
    labelData
    featureSize
    labelSize
    returns

    Definition Classes
    Sample
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.0) Old interface

Inherited from Sample[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped