public final class FullyWeightedVotingCombiner extends Object implements EnsembleCombiner<Label>
This uses the full distribution of predictions from each ensemble member, unlike VotingCombiner
which uses the most likely prediction for each ensemble member.
Constructor and Description |
---|
FullyWeightedVotingCombiner() |
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.