Class

com.spotify.featran.transformers

Transformer

Related Doc: package transformers

Permalink

abstract class Transformer[-A, B, C] extends Serializable

Base class for feature transformers.

Input values are converted into intermediate type B, aggregated, and converted to summary type C. The summary type C is then used to transform input values into features.

A

input type

B

aggregator intermediate type

C

aggregator summary type

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transformer
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Transformer(name: String)

    Permalink

    name

    feature name

Abstract Value Members

  1. abstract val aggregator: Aggregator[A, B, C]

    Permalink

    Aggregator for computing input values into a summary.

  2. abstract def buildFeatures(a: Option[A], c: C, fb: FeatureBuilder[_]): Unit

    Permalink

    Build features from a single input value and an aggregator summary.

    Build features from a single input value and an aggregator summary.

    a

    input value

    c

    aggregator summary

    fb

    feature builder

  3. abstract def decodeAggregator(s: String): C

    Permalink

    Decode aggregator summary from a previous extraction.

  4. abstract def encodeAggregator(c: C): String

    Permalink

    Encode aggregator summary of the current extraction.

  5. abstract def featureDimension(c: C): Int

    Permalink

    Number of generated features given an aggregator summary.

  6. abstract def featureNames(c: C): Seq[String]

    Permalink

    Names of the generated features given an aggregator summary.

Concrete 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 checkRange(name: String, value: Double, lower: Double, upper: Double): Unit

    Permalink
    Attributes
    protected
  6. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. val name: String

    Permalink

    feature name

  14. def nameAt(n: Int): String

    Permalink
    Attributes
    protected
  15. def names(n: Int): Stream[String]

    Permalink
    Attributes
    protected
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def optBuildFeatures(a: Option[A], c: Option[C], fb: FeatureBuilder[_]): Unit

    Permalink
  20. def optFeatureDimension(c: Option[C]): Int

    Permalink
  21. def optFeatureNames(c: Option[C]): Seq[String]

    Permalink
  22. def params: Map[String, String]

    Permalink

    Compile time parameters.

  23. def settings(c: Option[C]): Settings

    Permalink

    Settings including compile time parameters and runtime aggregator summary.

    Settings including compile time parameters and runtime aggregator summary.

    c

    aggregator summary

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

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped