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 Type
    Method
    Description
    encode(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

      TensorMap encode(SequenceExample<?> example, ImmutableFeatureMap featureMap)
      Encodes an example as a feed dict.
      Parameters:
      example - the input example
      featureMap - feature domain
      Returns:
      a map from graph placeholder names to their fed-in values.
    • encode

      TensorMap encode(List<? extends SequenceExample<?>> batch, ImmutableFeatureMap featureMap)
      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

      Set<String> inputNamesSet()
      Gets a view of the names of the inputs this converter produces.
      Returns:
      The input names.