public class LARSTrainer extends SLMTrainer
See:
Efron B, Hastie T, Johnstone I, Tibshirani R. "Least Angle Regression" The Annals of Statistics, 2004.
maxNumFeatures, normalize, trainInvocationCounter
DEFAULT_SEED
Constructor and Description |
---|
LARSTrainer()
Constructs a least angle regression trainer that selects all the features.
|
LARSTrainer(int maxNumFeatures)
Constructs a least angle regression trainer for a linear model.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.math3.linear.RealVector |
newWeights(org.tribuo.regression.slm.SLMTrainer.SLMState state) |
String |
toString() |
getInvocationCount, getProvenance, train
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
train
public LARSTrainer(int maxNumFeatures)
maxNumFeatures
- The maximum number of features to select. Supply -1 to select all features.public LARSTrainer()
protected org.apache.commons.math3.linear.RealVector newWeights(org.tribuo.regression.slm.SLMTrainer.SLMState state)
newWeights
in class SLMTrainer
public String toString()
toString
in class SLMTrainer
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.