Class SeqTest.CRFOptions
java.lang.Object
org.tribuo.classification.sgd.crf.SeqTest.CRFOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
- Enclosing class:
SeqTest
public static class SeqTest.CRFOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Command line options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionName of the example dataset, options are {gorilla}.intNumber of SGD epochs.Gradient descent options.intLog the objective after n examples.booleanPrint out feature, label and other model details.Hash the model during training.Salt for hashing the model.Path to serialize model to.booleanLoad in the model in protobuf format.longRNG seed.booleanShuffle the data each epoch (default: true).Path to a serialised SequenceDataset used for testing.Path to a serialised SequenceDataset used for training.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
gradientOptions
Gradient descent options. -
datasetName
@Option(charName='d', longName="dataset-name", usage="Name of the example dataset, options are {gorilla}.") public String datasetNameName of the example dataset, options are {gorilla}. -
outputPath
@Option(charName='f', longName="output-path", usage="Path to serialize model to.") public Path outputPathPath to serialize model to. -
epochs
@Option(charName='i', longName="epochs", usage="Number of SGD epochs.") public int epochsNumber of SGD epochs. -
logModel
@Option(charName='o', longName="print-model", usage="Print out feature, label and other model details.") public boolean logModelPrint out feature, label and other model details. -
loggingInterval
@Option(charName='p', longName="logging-interval", usage="Log the objective after <int> examples.") public int loggingIntervalLog the objective after n examples. -
seed
@Option(charName='r', longName="seed", usage="RNG seed.") public long seedRNG seed. -
shuffle
@Option(longName="shuffle", usage="Shuffle the data each epoch (default: true).") public boolean shuffleShuffle the data each epoch (default: true). -
trainDataset
@Option(charName='u', longName="train-dataset", usage="Path to a serialised SequenceDataset used for training.") public Path trainDatasetPath to a serialised SequenceDataset used for training. -
testDataset
@Option(charName='v', longName="test-dataset", usage="Path to a serialised SequenceDataset used for testing.") public Path testDatasetPath to a serialised SequenceDataset used for testing. -
modelHashingAlgorithm
@Option(longName="model-hashing-algorithm", usage="Hash the model during training. Defaults to no hashing.") public HashingOptions.ModelHashingType modelHashingAlgorithmHash the model during training. Defaults to no hashing. -
modelHashingSalt
@Option(longName="model-hashing-salt", usage="Salt for hashing the model.") public String modelHashingSaltSalt for hashing the model. -
protobufFormat
@Option(longName="protobuf-model", usage="Load the model from a protobuf. Optional") public boolean protobufFormatLoad in the model in protobuf format.
-
-
Constructor Details
-
CRFOptions
public CRFOptions()
-
-
Method Details
-
getOptionsDescription
- Specified by:
getOptionsDescriptionin interfacecom.oracle.labs.mlrg.olcut.config.Options
-