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
- Alphabetic
- By Inheritance
- FeatureBuilder
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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.
-
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
- abstract def newBuilder: FeatureBuilder[T]
-
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.
-
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
-
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
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
def
map[U](f: (T) ⇒ U): FeatureBuilder[U]
Create a FeatureBuilder for type
U
by converting the result typeT
withf
. -
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
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
-
def
reject(transformer: Transformer[_, _, _], reason: FeatureRejection): Unit
Reject an input row.
Reject an input row.
- transformer
transformer rejecting the input
- reason
reason for rejection
-
def
rejections: Map[String, FeatureRejection]
Gather rejections.
Gather rejections. This should be called only once per input row.
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()