Interface Trainer<T extends Output<T>>
- Type Parameters:
- T- the type of the- Outputin the examples
- All Superinterfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<TrainerProvenance>
- All Known Subinterfaces:
- DecisionTreeTrainer<T>,- IncrementalTrainer<T,,- U> - SparseTrainer<T>
- All Known Implementing Classes:
- AbstractCARTTrainer,- AbstractLinearSGDTrainer,- AbstractSGDTrainer,- AdaBoostTrainer,- BaggingTrainer,- CARTClassificationTrainer,- CARTJointRegressionTrainer,- CARTRegressionTrainer,- DummyClassifierTrainer,- DummyRegressionTrainer,- ElasticNetCDTrainer,- ExtraTreesTrainer,- HashingTrainer,- IndependentMultiLabelTrainer,- KernelSVMTrainer,- KMeansTrainer,- KNNTrainer,- LARSLassoTrainer,- LARSTrainer,- LibLinearAnomalyTrainer,- LibLinearClassificationTrainer,- LibLinearRegressionTrainer,- LibLinearTrainer,- LibSVMAnomalyTrainer,- LibSVMClassificationTrainer,- LibSVMRegressionTrainer,- LibSVMTrainer,- LinearSGDTrainer,- LinearSGDTrainer,- LinearSGDTrainer,- LogisticRegressionTrainer,- MultinomialNaiveBayesTrainer,- RandomForestTrainer,- SkeletalIndependentRegressionSparseTrainer,- SkeletalIndependentRegressionTrainer,- SLMTrainer,- TensorFlowTrainer,- TransformTrainer,- XGBoostClassificationTrainer,- XGBoostRegressionTrainer,- XGBoostTrainer
public interface Trainer<T extends Output<T>>
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<TrainerProvenance>
An interface for things that can train predictive models.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longDefault seed used to initialise RNGs.
- 
Method SummaryModifier and TypeMethodDescriptionintThe number of times this trainer instance has had it's train method invoked.Trains a predictive model using the examples in the given data set.train(Dataset<T> examples, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance) Trains a predictive model using the examples in the given data set.Methods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfigMethods inherited from interface com.oracle.labs.mlrg.olcut.provenance.ProvenancablegetProvenance
- 
Field Details- 
DEFAULT_SEEDstatic final long DEFAULT_SEEDDefault seed used to initialise RNGs.- See Also:
 
 
- 
- 
Method Details- 
train
- 
trainModel<T> train(Dataset<T> examples, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance) Trains a predictive model using the examples in the given data set.- Parameters:
- examples- the data set containing the examples.
- runProvenance- Training run specific provenance (e.g., fold number).
- Returns:
- a predictive model that can be used to generate predictions for new examples.
 
- 
getInvocationCountint getInvocationCount()The number of times this trainer instance has had it's train method invoked.This is used to determine how many times the trainer's RNG has been accessed to ensure replicability in the random number stream. - Returns:
- The number of train invocations.
 
 
-