T
- The output type.public class IndependentSequenceTrainer<T extends Output<T>> extends Object implements SequenceTrainer<T>
Constructor and Description |
---|
IndependentSequenceTrainer(Trainer<T> innerTrainer)
Builds a sequence trainer which uses a
Trainer to independently predict each sequence element. |
Modifier and Type | Method and Description |
---|---|
int |
getInvocationCount()
Returns the number of times the train method has been invoked.
|
TrainerProvenance |
getProvenance() |
String |
toString() |
IndependentSequenceModel<T> |
train(SequenceDataset<T> sequenceExamples,
Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance)
Trains a sequence prediction model using the examples in the given data set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
train
public IndependentSequenceModel<T> train(SequenceDataset<T> sequenceExamples, Map<String,com.oracle.labs.mlrg.olcut.provenance.Provenance> runProvenance)
SequenceTrainer
train
in interface SequenceTrainer<T extends Output<T>>
sequenceExamples
- the data set containing the examples.runProvenance
- Training run specific provenance (e.g., fold number).public int getInvocationCount()
SequenceTrainer
getInvocationCount
in interface SequenceTrainer<T extends Output<T>>
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.