public final class VotingCombiner extends Object implements EnsembleCombiner<Label>
This uses the most likely prediction from each ensemble member, unlike FullyWeightedVotingCombiner
which uses the full distribution of predictions for each ensemble member.
Constructor and Description |
---|
VotingCombiner()
Constructs a voting combiner.
|
Modifier and Type | Method and Description |
---|---|
Prediction<Label> |
combine(ImmutableOutputInfo<Label> outputInfo,
List<Prediction<Label>> predictions)
Combine the predictions.
|
Prediction<Label> |
combine(ImmutableOutputInfo<Label> outputInfo,
List<Prediction<Label>> predictions,
float[] weights)
Combine the supplied predictions.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
String |
toString() |
public Prediction<Label> combine(ImmutableOutputInfo<Label> outputInfo, List<Prediction<Label>> predictions)
EnsembleCombiner
combine
in interface EnsembleCombiner<Label>
outputInfo
- The output domain.predictions
- The predictions to combine.public Prediction<Label> combine(ImmutableOutputInfo<Label> outputInfo, List<Prediction<Label>> predictions, float[] weights)
EnsembleCombiner
combine
in interface EnsembleCombiner<Label>
outputInfo
- The output domain.predictions
- The predictions to combine.weights
- The weights to use for each prediction.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.