Package org.tribuo.multilabel.sgd.linear
Class LinearSGDOptions
java.lang.Object
org.tribuo.multilabel.sgd.linear.LinearSGDOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
CLI options for training a linear classifier.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of SGD epochs.int
Log the objective after n examples.int
Minibatch size.Loss function.long
Sets the random seed for the LinearSGDTrainer.The gradient descent optimiser options.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLoss()
Returns the loss function specified in the arguments.Gets the LinearSGDTrainer specified by the options in this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Options
getOptionsDescription
-
Field Details
-
sgoOptions
The gradient descent optimiser options. -
sgdEpochs
@Option(longName="sgd-epochs", usage="Number of SGD epochs.") public int sgdEpochsNumber of SGD epochs. -
sgdObjective
@Option(longName="sgd-objective", usage="Loss function.") public LinearSGDOptions.LossEnum sgdObjectiveLoss function. -
sgdLoggingInterval
@Option(longName="sgd-logging-interval", usage="Log the objective after <int> examples.") public int sgdLoggingIntervalLog the objective after n examples. -
sgdMinibatchSize
@Option(longName="sgd-minibatch-size", usage="Minibatch size.") public int sgdMinibatchSizeMinibatch size. -
sgdSeed
@Option(longName="sgd-seed", usage="Sets the random seed for the LinearSGDTrainer.") public long sgdSeedSets the random seed for the LinearSGDTrainer.
-
-
Constructor Details
-
LinearSGDOptions
public LinearSGDOptions()
-
-
Method Details
-
getLoss
Returns the loss function specified in the arguments.- Returns:
- The loss function.
-
getTrainer
Gets the LinearSGDTrainer specified by the options in this object.- Returns:
- The configured trainer.
-