Packages

trait FeatureBuilder[T] extends Serializable

Type class for types to build feature into.

T

output feature type

Self Type
FeatureBuilder[T]
Annotations
@implicitNotFound( ... ) @typeclass( ... , ... )
Source
FeatureBuilder.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FeatureBuilder
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(name: String, value: Double): Unit

    Add a single feature value.

    Add a single feature value. The total number of values added and skipped should equal to dimension in init.

  2. abstract def init(dimension: Int): Unit

    Initialize the builder for a record.

    Initialize the builder for a record. This should be called only once per input row.

    dimension

    total feature dimension

  3. abstract def newBuilder: FeatureBuilder[T]
  4. abstract def result: T

    Gather builder result for a result.

    Gather builder result for a result. This should be called only once per input row.

  5. abstract def skip(): Unit

    Skip a single feature value.

    Skip a single feature value. The total number of values added and skipped should equal to dimension in init.

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. def add[M[_]](names: Iterable[String], values: M[Double])(implicit ev: (M[Double]) ⇒ Seq[Double]): Unit

    Add multiple feature values.

    Add multiple feature values. The total number of values added and skipped should equal to dimension in init.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def map[U](f: (T) ⇒ U): FeatureBuilder[U]

    Create a FeatureBuilder for type U by converting the result type T with f.

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def prepare(transformer: Transformer[_, _, _]): Unit

    Prepare the builder for the next transformer.

    Prepare the builder for the next transformer. This should be called only once per transformer per input row.

    transformer

    the next transformer in line

  18. def reject(transformer: Transformer[_, _, _], reason: FeatureRejection): Unit

    Reject an input row.

    Reject an input row.

    transformer

    transformer rejecting the input

    reason

    reason for rejection

  19. def rejections: Map[String, FeatureRejection]

    Gather rejections.

    Gather rejections. This should be called only once per input row.

  20. def skip(n: Int): Unit

    Skip multiple feature values.

    Skip multiple feature values. The total number of values added and skipped should equal to dimension in init.

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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