Class FMClassificationOptions
java.lang.Object
org.tribuo.classification.sgd.fm.FMClassificationOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options,ClassificationOptions<FMClassificationTrainer>
public class FMClassificationOptions
extends Object
implements ClassificationOptions<FMClassificationTrainer>
CLI options for training a factorization machine classifier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAvailable loss types. -
Field Summary
FieldsModifier and TypeFieldDescriptionintNumber of SGD epochs.intFactor size.intLog the objective after n examples.intMinibatch size.Loss function.doubleVariance of the initialization gaussian.The gradient descent algorithm options.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLoss()Returns the loss function specified in the arguments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Options
getOptionsDescription
-
Field Details
-
sgoOptions
The gradient descent algorithm options. -
fmEpochs
Number of SGD epochs. -
fmObjective
@Option(longName="fm-objective", usage="Loss function.") public FMClassificationOptions.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
Minibatch size. -
fmFactorSize
Factor size. -
fmVariance
@Option(longName="fm-variance", usage="Variance of the initialization gaussian.") public double fmVarianceVariance of the initialization gaussian.
-
-
Constructor Details
-
FMClassificationOptions
public FMClassificationOptions()
-
-
Method Details
-
getLoss
Returns the loss function specified in the arguments.- Returns:
- The loss function.
-
getTrainer
- Specified by:
getTrainerin interfaceClassificationOptions<FMClassificationTrainer>
-