public class LinearRegressionSGDTrainer<P extends Serializable> extends Object implements SingleLabelDatasetTrainer<LinearRegressionModel>
| Constructor and Description |
|---|
LinearRegressionSGDTrainer(UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy,
int maxIterations,
int batchSize,
int locIterations,
long seed)
Constructs a new instance of linear regression SGD trainer.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> LinearRegressionModel |
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 LinearRegressionSGDTrainer(UpdatesStrategy<? super MultilayerPerceptron,P> updatesStgy, int maxIterations, int batchSize, int locIterations, long seed)
updatesStgy - Update strategy.maxIterations - Max number of iteration.batchSize - Batch size.locIterations - Number of local iterations.seed - Seed for random generator.public <K,V> LinearRegressionModel fit(DatasetBuilder<K,V> datasetBuilder, IgniteBiFunction<K,V,double[]> featureExtractor, IgniteBiFunction<K,V,Double> lbExtractor)
fit in interface DatasetTrainer<LinearRegressionModel,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