File transformation_probability_output_wise.hpp

namespace boosting
class OutputWiseProbabilityTransformation : public boosting::IProbabilityTransformation
#include <transformation_probability_output_wise.hpp>

An implementation of the class IProbabilityTransformation that transforms scores that have been aggregated for individual labels into probability estimates via element-wise application of an IMarginalProbabilityFunction.

Public Functions

OutputWiseProbabilityTransformation(std::unique_ptr<IMarginalProbabilityFunction> marginalProbabilityFunctionPtr)
Parameters:

marginalProbabilityFunctionPtr – An unique pointer to an object of type IMarginalProbabilityFunction that should be used to transform scores that are predicted for individual labels into probabilities

virtual void apply(View<float64>::const_iterator scoresBegin, View<float64>::const_iterator scoresEnd, View<float64>::iterator probabilitiesBegin, View<float64>::iterator probabilitiesEnd) const override

Transforms aggregated scores into probability estimates.

Parameters:
  • scoresBegin – An iterator to the beginning of the aggregated scores

  • scoresEnd – An iterator to the end of the the aggregated scores

  • probabilitiesBegin – An iterator to the beginning of the probabilities

  • probabilitiesEnd – An iterator to the end of the probabilities

Private Members

const std::unique_ptr<IMarginalProbabilityFunction> marginalProbabilityFunctionPtr_