public class GDBRegressionOnTreesTrainer extends GDBRegressionTrainer
GDBTrainer.GDBModel
DatasetTrainer.EmptyDatasetException
checkConvergenceStgyFactory, loss
envBuilder, environment
Constructor and Description |
---|
GDBRegressionOnTreesTrainer(double gradStepSize,
Integer cntOfIterations,
int maxDepth,
double minImpurityDecrease)
Constructs instance of GDBRegressionOnTreesTrainer.
|
Modifier and Type | Method and Description |
---|---|
protected @NotNull DecisionTreeRegressionTrainer |
buildBaseModelTrainer()
Returns regressor model trainer for one step of GDB.
|
protected GDBLearningStrategy |
getLearningStrategy()
Returns learning strategy.
|
int |
getMaxDepth()
Get the max depth.
|
double |
getMinImpurityDecrease()
Get the min impurity decrease.
|
boolean |
isUsingIdx()
Get the using index structure property instead of using sorting during the learning process.
|
GDBRegressionOnTreesTrainer |
setMaxDepth(int maxDepth)
Set up the max depth.
|
GDBRegressionOnTreesTrainer |
setMinImpurityDecrease(double minImpurityDecrease)
Set up the min impurity decrease.
|
GDBRegressionOnTreesTrainer |
withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
Changes learning Environment.
|
GDBRegressionOnTreesTrainer |
withUsingIdx(boolean usingIdx)
Set useIndex parameter and returns trainer instance.
|
externalLabelToInternal, internalLabelToExternal, learnLabels
computeInitialValue, fitWithInitializedDeployingContext, isUpdateable, updateModel, withCheckConvergenceStgyFactory
fit, fit, fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, identityTrainer, learningEnvironment, update, update, update, update, update, withConvertedLabels
public GDBRegressionOnTreesTrainer(double gradStepSize, Integer cntOfIterations, int maxDepth, double minImpurityDecrease)
gradStepSize
- Gradient step size.cntOfIterations
- Count of iterations.maxDepth
- Max depth.minImpurityDecrease
- Min impurity decrease.@NotNull protected @NotNull DecisionTreeRegressionTrainer buildBaseModelTrainer()
buildBaseModelTrainer
in class GDBTrainer
public GDBRegressionOnTreesTrainer withUsingIdx(boolean usingIdx)
usingIdx
- Use index.public int getMaxDepth()
public GDBRegressionOnTreesTrainer setMaxDepth(int maxDepth)
maxDepth
- The parameter value.public double getMinImpurityDecrease()
public GDBRegressionOnTreesTrainer setMinImpurityDecrease(double minImpurityDecrease)
minImpurityDecrease
- The parameter value.public boolean isUsingIdx()
protected GDBLearningStrategy getLearningStrategy()
getLearningStrategy
in class GDBTrainer
public GDBRegressionOnTreesTrainer withEnvironmentBuilder(LearningEnvironmentBuilder envBuilder)
withEnvironmentBuilder
in class GDBRegressionTrainer
envBuilder
- Learning environment builder.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024