File transformation_probability_output_wise.hpp¶
-
namespace boosting
-
class OutputWiseProbabilityTransformation : public boosting::IProbabilityTransformation¶
- #include <transformation_probability_output_wise.hpp>
An implementation of the class
IProbabilityTransformationthat transforms scores that have been aggregated for individual labels into probability estimates via element-wise application of anIMarginalProbabilityFunction.Public Functions
-
OutputWiseProbabilityTransformation(std::unique_ptr<IMarginalProbabilityFunction> marginalProbabilityFunctionPtr)¶
- Parameters:
marginalProbabilityFunctionPtr – An unique pointer to an object of type
IMarginalProbabilityFunctionthat 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_¶
-
OutputWiseProbabilityTransformation(std::unique_ptr<IMarginalProbabilityFunction> marginalProbabilityFunctionPtr)¶
-
class OutputWiseProbabilityTransformation : public boosting::IProbabilityTransformation¶