File discretization_function.hpp¶
-
namespace boosting
-
class IDiscretizationFunction¶
- #include <discretization_function.hpp>
Defines an interface for all classes that allow to discretize regression scores.
Public Functions
-
inline virtual ~IDiscretizationFunction()¶
-
virtual bool discretizeScore(uint32 labelIndex, float64 score) const = 0¶
Discretizes the regression score that is predicted for a specific label.
- Parameters:
labelIndex – The index of the label, the regression score is predicted for
score – The regression score to be discretized
- Returns:
A binary value the given regression score has been turned into
-
inline virtual ~IDiscretizationFunction()¶
-
class IDiscretizationFunctionFactory¶
- #include <discretization_function.hpp>
Defines an interface for all factories that allow to create instances of the type
IDiscretizationFunction
.Subclassed by boosting::ProbabilityDiscretizationFunctionFactory, boosting::ScoreDiscretizationFunctionFactory
Public Functions
-
inline virtual ~IDiscretizationFunctionFactory()¶
-
virtual std::unique_ptr<IDiscretizationFunction> create(const IMarginalProbabilityCalibrationModel &marginalProbabilityCalibrationModel) const = 0¶
Creates and returns a new object of the type
IDiscretizationFunction
.- Parameters:
marginalProbabilityCalibrationModel – A reference to an object of type
IMarginalProbabilityCalibrationModel
that should be used for the calibration of marginal probabilities- Returns:
An unique pointer to an object of type
IDiscretizationFunction
that has been created
-
inline virtual ~IDiscretizationFunctionFactory()¶
-
class IDiscretizationFunction¶