P - Type of model update used in this trainer.public class MLPTrainer<P extends Serializable> extends Object implements MultiLabelDatasetTrainer<MultilayerPerceptron>
Dataset.| Constructor and Description |
|---|
MLPTrainer(IgniteFunction<Dataset<EmptyContext,SimpleLabeledDatasetData>,MLPArchitecture> archSupplier,
IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss,
UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy,
int maxIterations,
int batchSize,
int locIterations,
long seed)
Constructs a new instance of multilayer perceptron trainer.
|
MLPTrainer(MLPArchitecture arch,
IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss,
UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy,
int maxIterations,
int batchSize,
int locIterations,
long seed)
Constructs a new instance of multilayer perceptron trainer.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> MultilayerPerceptron |
fit(DatasetBuilder<K,V> datasetBuilder,
IgniteBiFunction<K,V,double[]> featureExtractor,
IgniteBiFunction<K,V,double[]> lbExtractor)
Trains model based on the specified data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfit, fitpublic MLPTrainer(MLPArchitecture arch, IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss, UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy, int maxIterations, int batchSize, int locIterations, long seed)
arch - Multilayer perceptron architecture that defines layers and activators.loss - Loss function to be minimized during the training.updatesStgy - Update strategy that defines how to update model parameters during the training.maxIterations - Maximal number of iterations before the training will be stopped.batchSize - Batch size (per every partition).locIterations - Maximal number of local iterations before synchronization.seed - Random initializer seed.public MLPTrainer(IgniteFunction<Dataset<EmptyContext,SimpleLabeledDatasetData>,MLPArchitecture> archSupplier, IgniteFunction<Vector,IgniteDifferentiableVectorToDoubleFunction> loss, UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy, int maxIterations, int batchSize, int locIterations, long seed)
archSupplier - Multilayer perceptron architecture supplier that defines layers and activators.loss - Loss function to be minimized during the training.updatesStgy - Update strategy that defines how to update model parameters during the training.maxIterations - Maximal number of iterations before the training will be stopped.batchSize - Batch size (per every partition).locIterations - Maximal number of local iterations before synchronization.seed - Random initializer seed.public <K,V> MultilayerPerceptron fit(DatasetBuilder<K,V> datasetBuilder, IgniteBiFunction<K,V,double[]> featureExtractor, IgniteBiFunction<K,V,double[]> lbExtractor)
fit in interface DatasetTrainer<MultilayerPerceptron,double[]>K - Type of a key in upstream data.V - Type of a value in upstream data.datasetBuilder - Dataset builder.featureExtractor - Feature extractor.lbExtractor - Label extractor.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018