Package org.tribuo.interop.tensorflow
Class TrainTest.TensorflowOptions
java.lang.Object
org.tribuo.interop.tensorflow.TrainTest.TensorflowOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
- Enclosing class:
- TrainTest
public static class TrainTest.TensorflowOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Options for training a model in TensorFlow.
-
Field Summary
Modifier and TypeFieldDescriptionint
Minibatch size.Path to the checkpoint base directory.int
Number of gradient descent epochs.Gradient optimizer param names, see org.tribuo.interop.tensorflow.GradientOptimiser.Gradient optimizer param values, see org.tribuo.interop.tensorflow.GradientOptimiser.Image format, in [W,H,C].Name of the input placeholder.Input type.int
Interval between logging the loss.The gradient optimizer to use.Name of the output operation.Path to serialize model to.Path to the protobuf containing the network description.boolean
Save the Tribuo model out as a protobuf.int
Test time minibatch size.Path to the libsvm format testing file.Path to the libsvm format training file.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionZips the gradient parameter names and values.
-
Field Details
-
outputPath
@Option(charName='f', longName="model-output-path", usage="Path to serialize model to.") public Path outputPathPath to serialize model to. -
saveToProto
@Option(longName="model-save-to-proto", usage="Save the Tribuo model out as a protobuf.") public boolean saveToProtoSave the Tribuo model out as a protobuf. -
trainingPath
@Option(charName='u', longName="training-file", usage="Path to the libsvm format training file.") public Path trainingPathPath to the libsvm format training file. -
testingPath
@Option(charName='v', longName="testing-file", usage="Path to the libsvm format testing file.") public Path testingPathPath to the libsvm format testing file. -
outputName
@Option(charName='l', longName="output-name", usage="Name of the output operation.") public String outputNameName of the output operation. -
gradientParamNames
@Option(longName="optimizer-param-names", usage="Gradient optimizer param names, see org.tribuo.interop.tensorflow.GradientOptimiser.") public List<String> gradientParamNamesGradient optimizer param names, see org.tribuo.interop.tensorflow.GradientOptimiser. -
gradientParamValues
@Option(longName="optimizer-param-values", usage="Gradient optimizer param values, see org.tribuo.interop.tensorflow.GradientOptimiser.") public List<Float> gradientParamValuesGradient optimizer param values, see org.tribuo.interop.tensorflow.GradientOptimiser. -
optimiser
@Option(charName='g', longName="gradient-optimizer", usage="The gradient optimizer to use.") public GradientOptimiser optimiserThe gradient optimizer to use. -
testBatchSize
@Option(longName="test-batch-size", usage="Test time minibatch size.") public int testBatchSizeTest time minibatch size. -
batchSize
@Option(charName='b', longName="batch-size", usage="Minibatch size.") public int batchSizeMinibatch size. -
epochs
@Option(charName='e', longName="num-epochs", usage="Number of gradient descent epochs.") public int epochsNumber of gradient descent epochs. -
loggingInterval
@Option(longName="logging-interval", usage="Interval between logging the loss.") public int loggingIntervalInterval between logging the loss. -
inputName
@Option(charName='n', longName="input-name", usage="Name of the input placeholder.") public String inputNameName of the input placeholder. -
imageFormat
@Option(longName="image-format", usage="Image format, in [W,H,C]. Defaults to MNIST.") public String imageFormatImage format, in [W,H,C]. Defaults to MNIST. -
inputType
@Option(charName='t', longName="input-type", usage="Input type.") public TrainTest.InputType inputTypeInput type. -
protobufPath
@Option(charName='m', longName="model-protobuf", usage="Path to the protobuf containing the network description.") public Path protobufPathPath to the protobuf containing the network description. -
checkpointPath
@Option(charName='p', longName="checkpoint-dir", usage="Path to the checkpoint base directory.") public Path checkpointPathPath to the checkpoint base directory.
-
-
Constructor Details
-
TensorflowOptions
public TensorflowOptions()
-
-
Method Details
-
getOptionsDescription
- Specified by:
getOptionsDescription
in interfacecom.oracle.labs.mlrg.olcut.config.Options
-
getGradientParams
Zips the gradient parameter names and values.- Returns:
- The gradient parameter map.
-