public class GDBBinaryClassifierOnTreesTrainer extends GDBBinaryClassifierTrainer
GDBTrainer.GDBModel
DatasetTrainer.EmptyDatasetException
checkConvergenceStgyFactory, loss
environment
Constructor and Description |
---|
GDBBinaryClassifierOnTreesTrainer(double gradStepSize,
Integer cntOfIterations,
int maxDepth,
double minImpurityDecrease)
Constructs instance of GDBBinaryClassifierOnTreesTrainer.
|
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.
|
GDBBinaryClassifierOnTreesTrainer |
setMaxDepth(int maxDepth)
Set up the max depth.
|
GDBBinaryClassifierOnTreesTrainer |
setMinImpurityDecrease(double minImpurityDecrease)
Set up the min impurity decrease.
|
GDBBinaryClassifierOnTreesTrainer |
withUsingIdx(boolean usingIdx)
Set useIndex parameter and returns trainer instance.
|
externalLabelToInternal, internalLabelToExternal, learnLabels
checkState, computeInitialValue, fit, updateModel, withCheckConvergenceStgyFactory
fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, setEnvironment, update, update, update, update, update
public GDBBinaryClassifierOnTreesTrainer(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
protected GDBLearningStrategy getLearningStrategy()
getLearningStrategy
in class GDBTrainer
public GDBBinaryClassifierOnTreesTrainer withUsingIdx(boolean usingIdx)
usingIdx
- Use index.public int getMaxDepth()
public GDBBinaryClassifierOnTreesTrainer setMaxDepth(int maxDepth)
maxDepth
- The parameter value.public double getMinImpurityDecrease()
public GDBBinaryClassifierOnTreesTrainer setMinImpurityDecrease(double minImpurityDecrease)
minImpurityDecrease
- The parameter value.public boolean isUsingIdx()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019