public abstract class GDBRegressionTrainer extends GDBTrainer
GDBTrainer.GDBModel
DatasetTrainer.EmptyDatasetException
checkConvergenceStgyFactory, loss
environment
Constructor and Description |
---|
GDBRegressionTrainer(double gradStepSize,
Integer cntOfIterations)
Constructs instance of GDBRegressionTrainer.
|
Modifier and Type | Method and Description |
---|---|
protected double |
externalLabelToInternal(double x)
Maps external representation of label to internal.
|
protected double |
internalLabelToExternal(double x)
Maps internal representation of label to external.
|
protected <V,K> boolean |
learnLabels(DatasetBuilder<K,V> builder,
IgniteBiFunction<K,V,Vector> featureExtractor,
IgniteBiFunction<K,V,Double> lExtractor)
Defines unique labels in dataset if need (useful in case of classification).
|
buildBaseModelTrainer, checkState, computeInitialValue, fit, getLearningStrategy, updateModel, withCheckConvergenceStgyFactory
fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, setEnvironment, update, update, update, update, update
public GDBRegressionTrainer(double gradStepSize, Integer cntOfIterations)
gradStepSize
- Grad step size.cntOfIterations
- Count of learning iterations.protected <V,K> boolean learnLabels(DatasetBuilder<K,V> builder, IgniteBiFunction<K,V,Vector> featureExtractor, IgniteBiFunction<K,V,Double> lExtractor)
learnLabels
in class GDBTrainer
builder
- Dataset builder.featureExtractor
- Feature extractor.lExtractor
- Labels extractor.protected double externalLabelToInternal(double x)
externalLabelToInternal
in class GDBTrainer
x
- Label value.protected double internalLabelToExternal(double x)
internalLabelToExternal
in class GDBTrainer
x
- Label value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019