T
- the type of the Output
in the examplespublic interface Trainer<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<TrainerProvenance>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_SEED
Default seed used to initialise RNGs.
|
Modifier and Type | Method and Description |
---|---|
int |
getInvocationCount()
The number of times this trainer instance has had it's train method invoked.
|
default Model<T> |
train(Dataset<T> examples)
Trains a predictive model using the examples in the given data set.
|
Model<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.
|
static final long DEFAULT_SEED
default Model<T> train(Dataset<T> examples)
examples
- the data set containing the examples.Model<T> train(Dataset<T> examples, Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance)
examples
- the data set containing the examples.runProvenance
- Training run specific provenance (e.g., fold number).int getInvocationCount()
This is used to determine how many times the trainer's RNG has been accessed to ensure replicability in the random number stream.
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.