public class ElasticNetCDTrainer extends Object implements SparseTrainer<Regressor>
See:
Friedman J, Hastie T, Tibshirani R. "Regularization Paths for Generalized Linear Models via Coordinate Descent" Journal of Statistical Software, 2010
DEFAULT_SEED
Constructor and Description |
---|
ElasticNetCDTrainer(double alpha,
double l1Ratio) |
ElasticNetCDTrainer(double alpha,
double l1Ratio,
double tolerance,
int maxIterations,
boolean randomise,
long seed) |
ElasticNetCDTrainer(double alpha,
double l1Ratio,
long seed) |
Modifier and Type | Method and Description |
---|---|
int |
getInvocationCount()
The number of times this trainer instance has had it's train method invoked.
|
TrainerProvenance |
getProvenance() |
void |
postConfig()
Used by the OLCUT configuration system, and should not be called by external code.
|
String |
toString() |
SparseModel<Regressor> |
train(Dataset<Regressor> examples,
Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance)
Trains a sparse predictive model using the examples in the given data set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
train
public ElasticNetCDTrainer(double alpha, double l1Ratio)
public ElasticNetCDTrainer(double alpha, double l1Ratio, long seed)
public ElasticNetCDTrainer(double alpha, double l1Ratio, double tolerance, int maxIterations, boolean randomise, long seed)
public void postConfig()
postConfig
in interface com.oracle.labs.mlrg.olcut.config.Configurable
public SparseModel<Regressor> train(Dataset<Regressor> examples, Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance)
SparseTrainer
train
in interface SparseTrainer<Regressor>
train
in interface Trainer<Regressor>
examples
- the data set containing the examples.runProvenance
- Training run specific provenance (e.g., fold number).public int getInvocationCount()
Trainer
This is used to determine how many times the trainer's RNG has been accessed to ensure replicability in the random number stream.
getInvocationCount
in interface Trainer<Regressor>
public TrainerProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<TrainerProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.