public final class WeightedPrediction extends Object
TreeBasedClassifiers into one prediction -- in particular, it is used by
DecisionForest to combine the results of many
DecisionTrees. Predictions from many
TreeBasedClassifiers are combined and weighted according to the accuracy of
the individuals.| Modifier and Type | Method and Description |
|---|---|
static <T extends Prediction> |
voteOnFeature(List<T> predictions,
double[] weights) |
public static <T extends Prediction> Prediction voteOnFeature(List<T> predictions, double[] weights)
T - type of Prediction to vote onpredictions - Predictions from individualsweights - weights that should be applied toPrediction represented a weighted combination of the inputsCopyright © 2014–2018. All rights reserved.