public final class WeightedPrediction extends Object
TreeBasedClassifier
s into one prediction -- in particular, it is used by
DecisionForest
to combine the results of many
DecisionTree
s. Prediction
s from many
TreeBasedClassifier
s 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
- Prediction
s from individualsweights
- weights that should be applied toPrediction
represented a weighted combination of the inputsCopyright © 2014–2018. All rights reserved.