Interface SequenceFeatureConverter
- All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
,Serializable
public interface SequenceFeatureConverter
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
Converts a sequence example into a feed dict suitable for TensorFlow.
N.B. TensorFlow support is experimental and may change without a major version bump.
-
Method Summary
Modifier and TypeMethodDescriptionencode
(List<? extends SequenceExample<?>> batch, ImmutableFeatureMap featureMap) Encodes a batch of examples as a feed dict.encode
(SequenceExample<?> example, ImmutableFeatureMap featureMap) Encodes an example as a feed dict.Gets a view of the names of the inputs this converter produces.Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable
getProvenance
-
Method Details
-
encode
Encodes an example as a feed dict.- Parameters:
example
- the input examplefeatureMap
- feature domain- Returns:
- a map from graph placeholder names to their fed-in values.
-
encode
Encodes a batch of examples as a feed dict.- Parameters:
batch
- a batch of examples.featureMap
- feature domain- Returns:
- a map from graph placeholder names to their fed-in values.
-
inputNamesSet
Gets a view of the names of the inputs this converter produces.- Returns:
- The input names.
-