public class RegressionLeafValuesComputer extends LeafValuesComputer<MeanValueStatistic>
LeafValuesComputer
for regression task.Constructor and Description |
---|
RegressionLeafValuesComputer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addElementToLeafStatistic(MeanValueStatistic leafStatAggr,
BootstrappedVector vec,
int sampleId)
Save vector to leaf statistic.
|
protected double |
computeLeafValue(MeanValueStatistic stat)
Returns the mean value in according to statistic.
|
protected MeanValueStatistic |
createLeafStatsAggregator(int sampleId)
Creates an instance of leaf statistics aggregator in according to concrete algorithm based on RandomForest.
|
protected MeanValueStatistic |
mergeLeafStats(MeanValueStatistic leftStats,
MeanValueStatistic rightStats)
Merge statistics for same leafs.
|
setValuesForLeaves
protected void addElementToLeafStatistic(MeanValueStatistic leafStatAggr, BootstrappedVector vec, int sampleId)
addElementToLeafStatistic
in class LeafValuesComputer<MeanValueStatistic>
leafStatAggr
- Leaf statistics aggregator.vec
- Vector.sampleId
- Sample id.protected MeanValueStatistic mergeLeafStats(MeanValueStatistic leftStats, MeanValueStatistic rightStats)
mergeLeafStats
in class LeafValuesComputer<MeanValueStatistic>
leftStats
- First leaf stat aggregator.rightStats
- Second leaf stat aggregator.protected MeanValueStatistic createLeafStatsAggregator(int sampleId)
createLeafStatsAggregator
in class LeafValuesComputer<MeanValueStatistic>
sampleId
- Sample id.protected double computeLeafValue(MeanValueStatistic stat)
computeLeafValue
in class LeafValuesComputer<MeanValueStatistic>
stat
- Leaf statistics.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024