Interface SequenceFeatureConverter
- All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,ProtoSerializable<org.tribuo.interop.tensorflow.protos.SequenceFeatureConverterProto>
,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, ProtoSerializable<org.tribuo.interop.tensorflow.protos.SequenceFeatureConverterProto>, 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.
-
Field Summary
Fields inherited from interface org.tribuo.protos.ProtoSerializable
DESERIALIZATION_METHOD_NAME, PROVENANCE_SERIALIZER
-
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 org.tribuo.protos.ProtoSerializable
serialize
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.
-