public class LinearRegressionLSQRTrainer extends SingleLabelDatasetTrainer<LinearRegressionModel>
AbstractLSQR
DatasetTrainer.EmptyDatasetException
envBuilder, environment
Constructor and Description |
---|
LinearRegressionLSQRTrainer() |
Modifier and Type | Method and Description |
---|---|
<K,V> LinearRegressionModel |
fitWithInitializedDeployingContext(DatasetBuilder<K,V> datasetBuilder,
Preprocessor<K,V> extractor)
Trains model based on the specified data.
|
boolean |
isUpdateable(LinearRegressionModel mdl) |
protected <K,V> LinearRegressionModel |
updateModel(LinearRegressionModel mdl,
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 <K,V> LinearRegressionModel fitWithInitializedDeployingContext(DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> extractor)
fitWithInitializedDeployingContext
in class DatasetTrainer<LinearRegressionModel,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> LinearRegressionModel updateModel(LinearRegressionModel mdl, DatasetBuilder<K,V> datasetBuilder, Preprocessor<K,V> extractor)
updateModel
in class DatasetTrainer<LinearRegressionModel,Double>
K
- Type of a key in upstream
data.V
- Type of a value in upstream
data.mdl
- Learned model.datasetBuilder
- Dataset builder.extractor
- Extractor of UpstreamEntry
into LabeledVector
.public boolean isUpdateable(LinearRegressionModel mdl)
isUpdateable
in class DatasetTrainer<LinearRegressionModel,Double>
mdl
- Model.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024