public interface FeatureConverter extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
Modifier and Type | Method and Description |
---|---|
TensorMap |
convert(Example<?> example,
ImmutableFeatureMap featureIDMap)
|
TensorMap |
convert(List<? extends Example<?>> example,
ImmutableFeatureMap featureIDMap)
|
TensorMap |
convert(List<? extends SGDVector> vectors)
|
TensorMap |
convert(SGDVector vector)
|
Set<String> |
inputNamesSet()
Gets a view of the names of the inputs this converter produces.
|
TensorMap convert(Example<?> example, ImmutableFeatureMap featureIDMap)
Example
into a TensorMap
suitable for supplying as an input to a graph.
It generates it as a single example minibatch.
example
- The example to convert.featureIDMap
- The id map to convert feature names into id numbers.TensorMap convert(List<? extends Example<?>> example, ImmutableFeatureMap featureIDMap)
example
- The examples to convert.featureIDMap
- THe id map to convert feature names into id numbers.TensorMap convert(SGDVector vector)
SGDVector
representing the features into a TensorMap
.
It generates it as a single example minibatch.
vector
- The features to convert.TensorMap convert(List<? extends SGDVector> vectors)
vectors
- The batch of features to convert.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.