Interface EnsembleCombiner<T extends Output<T>>

All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
All Known Implementing Classes:
AveragingCombiner, FullyWeightedVotingCombiner, VotingCombiner

public interface EnsembleCombiner<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
An interface for combining predictions. Implementations should be final and immutable.
  • Method Summary

    Modifier and Type
    Method
    Description
    combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions)
    Combine the predictions.
    combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions, float[] weights)
    Combine the supplied predictions.

    Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable

    postConfig

    Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable

    getProvenance
  • Method Details

    • combine

      Prediction<T> combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions)
      Combine the predictions.
      Parameters:
      outputInfo - The output domain.
      predictions - The predictions to combine.
      Returns:
      The ensemble prediction.
    • combine

      Prediction<T> combine(ImmutableOutputInfo<T> outputInfo, List<Prediction<T>> predictions, float[] weights)
      Combine the supplied predictions. predictions.size() must equal weights.length.
      Parameters:
      outputInfo - The output domain.
      predictions - The predictions to combine.
      weights - The weights to use for each prediction.
      Returns:
      The ensemble prediction.