Class LARSTrainer
java.lang.Object
org.tribuo.regression.slm.SLMTrainer
org.tribuo.regression.slm.LARSTrainer
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<TrainerProvenance>,- SparseTrainer<Regressor>,- Trainer<Regressor>,- WeightedExamples
A trainer for a linear regression model which uses least angle regression.
 Each output dimension is trained independently.
 
See:
Efron B, Hastie T, Johnstone I, Tibshirani R. "Least Angle Regression" The Annals of Statistics, 2004.
- 
Field SummaryFields inherited from class org.tribuo.regression.slm.SLMTrainermaxNumFeatures, normalize, trainInvocationCounterFields inherited from interface org.tribuo.TrainerDEFAULT_SEED
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a least angle regression trainer that selects all the features.LARSTrainer(int maxNumFeatures) Constructs a least angle regression trainer for a linear model.
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.commons.math3.linear.RealVectornewWeights(org.tribuo.regression.slm.SLMTrainer.SLMState state) toString()Methods inherited from class org.tribuo.regression.slm.SLMTrainergetInvocationCount, getProvenance, trainMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfigMethods inherited from interface org.tribuo.SparseTrainertrain
- 
Constructor Details- 
LARSTrainerConstructs a least angle regression trainer for a linear model.- Parameters:
- maxNumFeatures- The maximum number of features to select. Supply -1 to select all features.
 
- 
LARSTrainerpublic LARSTrainer()Constructs a least angle regression trainer that selects all the features.
 
- 
- 
Method Details- 
newWeightsprotected org.apache.commons.math3.linear.RealVector newWeights(org.tribuo.regression.slm.SLMTrainer.SLMState state) - Overrides:
- newWeightsin class- SLMTrainer
 
- 
toString- Overrides:
- toStringin class- SLMTrainer
 
 
-