Package org.tribuo.multilabel.sgd.fm
Class FMMultiLabelOptions
java.lang.Object
org.tribuo.multilabel.sgd.fm.FMMultiLabelOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
public class FMMultiLabelOptions
extends Object
implements 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
Factor size.int
Log the objective after n examples.int
Minibatch size.Loss function.double
Variance of the initialization gaussian.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 trainer as configured by these options.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. -
fmEpochs
@Option(longName="fm-epochs", usage="Number of SGD epochs.") public int fmEpochsNumber of SGD epochs. -
fmObjective
@Option(longName="fm-objective", usage="Loss function.") public FMMultiLabelOptions.LossEnum fmObjectiveLoss function. -
fmLoggingInterval
@Option(longName="fm-logging-interval", usage="Log the objective after <int> examples.") public int fmLoggingIntervalLog the objective after n examples. -
fmMinibatchSize
@Option(longName="fm-minibatch-size", usage="Minibatch size.") public int fmMinibatchSizeMinibatch size. -
fmFactorSize
@Option(longName="fm-factor-size", usage="Factor size.") public int fmFactorSizeFactor size. -
fmVariance
@Option(longName="fm-variance", usage="Variance of the initialization gaussian.") public double fmVarianceVariance of the initialization gaussian.
-
-
Constructor Details
-
FMMultiLabelOptions
public FMMultiLabelOptions()
-
-
Method Details
-
getLoss
Returns the loss function specified in the arguments.- Returns:
- The loss function.
-
getTrainer
Gets the trainer as configured by these options.- Returns:
- The trainer.
-