Class AveragingCombiner
java.lang.Object
org.tribuo.regression.ensemble.AveragingCombiner
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,- Serializable,- EnsembleCombiner<Regressor>
A combiner which performs a weighted or unweighted average of the predicted
 regressors independently across the output dimensions.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncombine(ImmutableOutputInfo<Regressor> outputInfo, List<Prediction<Regressor>> predictions) Combine the predictions.combine(ImmutableOutputInfo<Regressor> outputInfo, List<Prediction<Regressor>> predictions, float[] weights) Combine the supplied predictions.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancetoString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfig
- 
Constructor Details- 
AveragingCombinerpublic AveragingCombiner()
 
- 
- 
Method Details- 
combinepublic Prediction<Regressor> combine(ImmutableOutputInfo<Regressor> outputInfo, List<Prediction<Regressor>> predictions) Description copied from interface:EnsembleCombinerCombine the predictions.- Specified by:
- combinein interface- EnsembleCombiner<Regressor>
- Parameters:
- outputInfo- The output domain.
- predictions- The predictions to combine.
- Returns:
- The ensemble prediction.
 
- 
combinepublic Prediction<Regressor> combine(ImmutableOutputInfo<Regressor> outputInfo, List<Prediction<Regressor>> predictions, float[] weights) Description copied from interface:EnsembleCombinerCombine the supplied predictions. predictions.size() must equal weights.length.- Specified by:
- combinein interface- EnsembleCombiner<Regressor>
- Parameters:
- outputInfo- The output domain.
- predictions- The predictions to combine.
- weights- The weights to use for each prediction.
- Returns:
- The ensemble prediction.
 
- 
toString
- 
getProvenance- Specified by:
- getProvenancein interface- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
 
 
-