final case class TensorFlowFeatureBuilder(underlying: Builder = tf.Features.newBuilder()) extends FeatureBuilder[Example] with Product with Serializable
- Source
- package.scala
- Alphabetic
- By Inheritance
- TensorFlowFeatureBuilder
- Product
- Equals
- FeatureBuilder
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TensorFlowFeatureBuilder(underlying: Builder = tf.Features.newBuilder())
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(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.
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
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.
- Definition Classes
- FeatureBuilder
-
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
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
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
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[U](f: (Example) ⇒ U): FeatureBuilder[U]
Create a FeatureBuilder for type
U
by converting the result typeT
withf
.Create a FeatureBuilder for type
U
by converting the result typeT
withf
.- Definition Classes
- FeatureBuilder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: FeatureBuilder[Example]
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
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
- Definition Classes
- FeatureBuilder
-
def
reject(transformer: Transformer[_, _, _], reason: FeatureRejection): Unit
Reject an input row.
Reject an input row.
- transformer
transformer rejecting the input
- reason
reason for rejection
- Definition Classes
- FeatureBuilder
-
def
rejections: Map[String, FeatureRejection]
Gather rejections.
Gather rejections. This should be called only once per input row.
- Definition Classes
- FeatureBuilder
-
def
result: Example
Gather builder result for a result.
Gather builder result for a result. This should be called only once per input row.
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
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.
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
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.
- Definition Classes
- TensorFlowFeatureBuilder → FeatureBuilder
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()