File transformation_probability_label_wise.hpp

namespace boosting
class LabelWiseProbabilityTransformation : public boosting::IProbabilityTransformation
#include <transformation_probability_label_wise.hpp>

An implementation of the class IProbabilityTransformation that transforms aggregated scores into probability estimates via element-wise application of a IMarginalProbabilityFunction.

Public Functions

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

marginalProbabilityFunctionPtr – An unique pointer to an object of type IMarginalProbabilityFunction that should be used to transform regression 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_