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
- Alphabetic
- By Inheritance
- Transformer
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Transformer(name: String)
- name
feature name
Abstract Value Members
-
abstract
val
aggregator: Aggregator[A, B, C]
Aggregator for computing input values into a summary.
-
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
-
abstract
def
decodeAggregator(s: String): C
Decode aggregator summary from a previous extraction.
-
abstract
def
encodeAggregator(c: C): String
Encode aggregator summary of the current extraction.
-
abstract
def
featureDimension(c: C): Int
Number of generated features given an aggregator summary.
-
abstract
def
featureNames(c: C): Seq[String]
Names of the generated features given an aggregator summary.
- abstract def flatRead[T](implicit arg0: FlatReader[T]): (T) ⇒ Option[Any]
- abstract def flatWriter[T](implicit fw: FlatWriter[T]): (Option[A]) ⇒ IF
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkRange(name: String, value: Double, lower: Double, upper: Double): Unit
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
-
def
nameAt(n: Int): String
- Attributes
- protected
-
def
names(n: Int): Stream[String]
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optBuildFeatures(a: Option[A], c: Option[C], fb: FeatureBuilder[_]): Unit
- def optFeatureDimension(c: Option[C]): Int
- def optFeatureNames(c: Option[C]): Seq[String]
-
def
params: Map[String, String]
Compile time parameters.
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeBuildFeatures(a: Option[Any], c: Option[Any], fb: FeatureBuilder[_]): Unit
- def unsafeFeatureDimension(c: Option[Any]): Int
- def unsafeFlatWriter[T](implicit fw: FlatWriter[T]): (Option[Any]) ⇒ IF
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()