public class OneVsRestTrainer<M extends IgniteModel<Vector,Double>> extends SingleLabelDatasetTrainer<MultiClassModel<M>>
DatasetTrainer.EmptyDatasetException
envBuilder, environment
Constructor and Description |
---|
OneVsRestTrainer(SingleLabelDatasetTrainer<M> classifier) |
Modifier and Type | Method and Description |
---|---|
<K,V> MultiClassModel<M> |
fitWithInitializedDeployingContext(DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> extractor)
Trains model based on the specified data.
|
boolean |
isUpdateable(MultiClassModel<M> mdl) |
protected <K,V> MultiClassModel<M> |
updateModel(MultiClassModel<M> newMdl,
DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> extractor)
Trains new model taken previous one as a first approximation.
|
fit, fit, fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, identityTrainer, learningEnvironment, update, update, update, update, update, withConvertedLabels, withEnvironmentBuilder
public OneVsRestTrainer(SingleLabelDatasetTrainer<M> classifier)
public <K,V> MultiClassModel<M> fitWithInitializedDeployingContext(DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> extractor)
fitWithInitializedDeployingContext
in class DatasetTrainer<MultiClassModel<M extends IgniteModel<Vector,Double>>,Double>
K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.datasetBuilder
- Dataset builder.extractor
- Extractor of UpstreamEntry
into LabeledVector
.protected <K,V> MultiClassModel<M> updateModel(MultiClassModel<M> newMdl, DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> extractor)
updateModel
in class DatasetTrainer<MultiClassModel<M extends IgniteModel<Vector,Double>>,Double>
K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.newMdl
- Learned model.datasetBuilder
- Dataset builder.extractor
- Extractor of UpstreamEntry
into LabeledVector
.public boolean isUpdateable(MultiClassModel<M> mdl)
isUpdateable
in class DatasetTrainer<MultiClassModel<M extends IgniteModel<Vector,Double>>,Double>
mdl
- Model.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024