public class RandomForestClassifierTrainer extends RandomForestTrainer<ObjectHistogram<BootstrappedVector>,GiniHistogram,RandomForestClassifierTrainer>
DatasetTrainer.EmptyDatasetException
environment
Constructor and Description |
---|
RandomForestClassifierTrainer(List<FeatureMeta> meta)
Constructs an instance of RandomForestClassifierTrainer.
|
Modifier and Type | Method and Description |
---|---|
protected ModelsComposition |
buildComposition(List<TreeRoot> models)
Returns composition of built trees.
|
protected ImpurityHistogramsComputer<GiniHistogram> |
createImpurityHistogramsComputer()
Creates an instance of Histograms Computer corresponding to RF implementation.
|
protected LeafValuesComputer<ObjectHistogram<BootstrappedVector>> |
createLeafStatisticsAggregator()
Creates an instance of Leaf Statistics Aggregator corresponding to RF implementation.
|
protected boolean |
init(Dataset<EmptyContext,BootstrappedDatasetPartition> dataset)
Aggregates all unique labels from dataset and assigns integer id value for each label.
|
protected RandomForestClassifierTrainer |
instance() |
checkState, fit, initTrees, updateModel, withAmountOfTrees, withFeaturesCountSelectionStrgy, withMaxDepth, withMinImpurityDelta, withNodesToLearnSelectionStrgy, withSeed, withSubSampleSize
fit, fit, fit, fit, getLastTrainedModelOrThrowEmptyDatasetException, setEnvironment, update, update, update, update, update
public RandomForestClassifierTrainer(List<FeatureMeta> meta)
meta
- Features meta.protected RandomForestClassifierTrainer instance()
instance
in class RandomForestTrainer<ObjectHistogram<BootstrappedVector>,GiniHistogram,RandomForestClassifierTrainer>
protected boolean init(Dataset<EmptyContext,BootstrappedDatasetPartition> dataset)
init
in class RandomForestTrainer<ObjectHistogram<BootstrappedVector>,GiniHistogram,RandomForestClassifierTrainer>
dataset
- Dataset.protected ModelsComposition buildComposition(List<TreeRoot> models)
buildComposition
in class RandomForestTrainer<ObjectHistogram<BootstrappedVector>,GiniHistogram,RandomForestClassifierTrainer>
models
- Models.protected ImpurityHistogramsComputer<GiniHistogram> createImpurityHistogramsComputer()
protected LeafValuesComputer<ObjectHistogram<BootstrappedVector>> createLeafStatisticsAggregator()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019