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

Self Type
Transformer[A, B, C]
Source
Transformer.scala
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)

    name

    feature name

Abstract Value Members

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

    Aggregator for computing input values into a summary.

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

    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

    Decode aggregator summary from a previous extraction.

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

    Encode aggregator summary of the current extraction.

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

    Number of generated features given an aggregator summary.

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

    Names of the generated features given an aggregator summary.

  7. abstract def flatRead[T](implicit arg0: FlatReader[T]): (T) ⇒ Option[Any]
  8. abstract def flatWriter[T](implicit fw: FlatWriter[T]): (Option[A]) ⇒ IF

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkRange(name: String, value: Double, lower: Double, upper: Double): Unit
    Attributes
    protected
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def contramap[AA](f: (AA) ⇒ A): Transformer[AA, B, C]

    Builds a new transformer with an extra input preprocessing step

    Builds a new transformer with an extra input preprocessing step

    f

    input preprocessing function

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val name: String
  15. def nameAt(n: Int): String
    Attributes
    protected
  16. def names(n: Int): Stream[String]
    Attributes
    protected
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def optBuildFeatures(a: Option[A], c: Option[C], fb: FeatureBuilder[_]): Unit
  21. def optFeatureDimension(c: Option[C]): Int
  22. def optFeatureNames(c: Option[C]): Seq[String]
  23. def params: Map[String, String]

    Compile time parameters.

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

    Settings including compile time parameters and runtime aggregator summary.

    Settings including compile time parameters and runtime aggregator summary.

    c

    aggregator summary

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def unsafeBuildFeatures(a: Option[Any], c: Option[Any], fb: FeatureBuilder[_]): Unit
  28. def unsafeFeatureDimension(c: Option[Any]): Int
  29. def unsafeFlatWriter[T](implicit fw: FlatWriter[T]): (Option[Any]) ⇒ IF
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped