Object

com.intel.analytics.zoo.models.recommendation

Utils

Related Doc: package recommendation

Permalink

object Utils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Utils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def buckBucket(bucketSize: Int): (String, String) ⇒ Int

    Permalink
  6. def buckBuckets(bucketSize: Int)(col: String*): Int

    Permalink
  7. def bucketizedColumn(boundaries: Array[Float]): (Float) ⇒ Int

    Permalink
  8. def categoricalFromVocabList(vocabList: Array[String]): (String) ⇒ Int

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getDeepTensor(r: Row, columnInfo: ColumnFeatureInfo): Tensor[Float]

    Permalink
  15. def getDeepTensors(r: Row, columnInfo: ColumnFeatureInfo): Array[Tensor[Float]]

    Permalink

    convert a row to tensors given column feature information of WideAndDeep model.

    convert a row to tensors given column feature information of WideAndDeep model.

    r

    Row of userId, itemId, features and label

    columnInfo

    ColumnFeatureInfo specify information of different features

    returns

    an array of tensors as input for deep part of a WideAndDeep model

  16. def getNegativeSamples(indexed: DataFrame): DataFrame

    Permalink

    generate negative samples given a dataframe of positive records, label >=2.

    generate negative samples given a dataframe of positive records, label >=2.

    indexed

    dataframe positive of userId, itemId and label.

    returns

    a dataframe of negative samples(label=1) with the same size as indexed dataframe

  17. def getWideTensor(r: Row, columnInfo: ColumnFeatureInfo): Tensor[Float]

    Permalink

    convert a row to tensor given column feature information of WideAndDeep model.

    convert a row to tensor given column feature information of WideAndDeep model.

    r

    Row of userId, itemId, features and label

    columnInfo

    ColumnFeatureInfo specify information of different features

    returns

    a tensor as input for wide part of a WideAndDeep model

  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def prePadding(maxLength: Int): (WrappedArray[Float]) ⇒ Array[Float]

    Permalink
  24. def row2Sample(r: Row, columnInfo: ColumnFeatureInfo, modelType: String): Sample[Float]

    Permalink

    convert a row to sample given column information of WideAndDeep model.

    convert a row to sample given column information of WideAndDeep model.

    r

    Row of userId, itemId, features and label

    columnInfo

    ColumnFeatureInfo specify information of different features

    modelType

    support "wide_n_deep", "wide", "deep" only

    returns

    TensorSample as input for WideAndDeep model

  25. def row2SampleSequential(r: Row, columnInfo: ColumnFeatureInfo, modelType: String): Sample[Float]

    Permalink

    convert a row to sample given column information of WideAndDeep Sequential model.

    convert a row to sample given column information of WideAndDeep Sequential model.

    r

    Row of userId, itemId, features and label

    columnInfo

    ColumnFeatureInfo specify information of different features

    modelType

    support "wide_n_deep", "wide", "deep" only

    returns

    TensorSample as input for WideAndDeep Sequential model

  26. def row2sampleSession(r: Row, sessionLength: Int, includeHistory: Boolean, historyLength: Int): Sample[Float]

    Permalink
  27. def slideSession(df: DataFrame, sessionLength: Int): DataFrame

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped