Class TrainTest.SLMOptions
java.lang.Object
org.tribuo.regression.slm.TrainTest.SLMOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
- Enclosing class:
TrainTest
public static class TrainTest.SLMOptions
extends Object
implements com.oracle.labs.mlrg.olcut.config.Options
Command line options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionChoose the training algorithm (stepwise forward selection or least angle regression).doubleRegularisation strength in the Elastic Net.The data loading options.intIterations of Elastic Net.doubleRatio between the l1 and l2 penalties in the Elastic Net.intSet the maximum number of features.Fields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
general
The data loading options. -
maxNumFeatures
@Option(charName='m', longName="max-features-num", usage="Set the maximum number of features.") public int maxNumFeaturesSet the maximum number of features. -
algorithm
@Option(charName='a', longName="algorithm", usage="Choose the training algorithm (stepwise forward selection or least angle regression).") public TrainTest.SLMType algorithmChoose the training algorithm (stepwise forward selection or least angle regression). -
alpha
@Option(charName='b', longName="alpha", usage="Regularisation strength in the Elastic Net.") public double alphaRegularisation strength in the Elastic Net. -
l1Ratio
@Option(charName='l', longName="l1Ratio", usage="Ratio between the l1 and l2 penalties in the Elastic Net. Must be between 0 and 1.") public double l1RatioRatio between the l1 and l2 penalties in the Elastic Net. Must be between 0 and 1. -
iterations
@Option(longName="iterations", usage="Iterations of Elastic Net.") public int iterationsIterations of Elastic Net.
-
-
Constructor Details
-
SLMOptions
public SLMOptions()
-
-
Method Details
-
getOptionsDescription
- Specified by:
getOptionsDescriptionin interfacecom.oracle.labs.mlrg.olcut.config.Options
-