File loss.hpp¶
-
namespace boosting
-
class IClassificationLoss : public IDistanceMeasure¶
- #include <loss.hpp>
Defines an interface for all loss functions that can be used in classification problems.
Subclassed by boosting::IDecomposableClassificationLoss, boosting::INonDecomposableClassificationLoss
Public Functions
-
inline virtual ~IClassificationLoss() override¶
-
inline virtual ~IClassificationLoss() override¶
-
class IRegressionLoss¶
- #include <loss.hpp>
Defines an interface for all loss functions that can be used in regression problems.
Subclassed by boosting::IDecomposableRegressionLoss, boosting::INonDecomposableRegressionLoss
Public Functions
-
inline virtual ~IRegressionLoss()¶
-
inline virtual ~IRegressionLoss()¶
-
class ILossConfig¶
- #include <loss.hpp>
Defines an interface for all classes that allow to configure a loss function.
Subclassed by boosting::IClassificationLossConfig, boosting::IDecomposableLossConfig, boosting::INonDecomposableLossConfig, boosting::IRegressionLossConfig
Public Functions
-
inline virtual ~ILossConfig()¶
-
virtual bool isDecomposable() const = 0¶
Returns whether the loss function is decomposable or not.
- Returns:
True, if the loss function is decomposable, false otherwise
-
virtual bool isSparse() const = 0¶
Returns whether the loss function supports to use a sparse format for storing statistics or not.
- Returns:
True, if the loss function supports to use a sparse format for storing statistics, false otherwise
-
inline virtual ~ILossConfig()¶
-
class IClassificationLossConfig : public virtual boosting::ILossConfig¶
- #include <loss.hpp>
Defines an interface for all classes that allow to configure a loss function that can be used in classification problems.
Subclassed by boosting::IDecomposableClassificationLossConfig, boosting::INonDecomposableClassificationLossConfig
Public Functions
-
inline virtual ~IClassificationLossConfig() override¶
-
virtual std::unique_ptr<IClassificationStatisticsProviderFactory> createClassificationStatisticsProviderFactory(const IFeatureMatrix &featureMatrix, const IRowWiseLabelMatrix &labelMatrix, const Blas &blas, const Lapack &lapack, bool preferSparseStatistics) const = 0¶
Creates and returns a new object of type
IClassificationStatisticsProviderFactoryaccording to the specified configuration.- Parameters:
featureMatrix – A reference to an object of type
IFeatureMatrixthat provides access to the feature values of the training exampleslabelMatrix – A reference to an object of type
IRowWiseLabelMatrixthat provides access to the labels of the training examplesblas – A reference to an object of type
Blasthat allows to execute BLAS routineslapack – A reference to an object of type
Lapackthat allows to execute LAPACK routinespreferSparseStatistics – True, if a sparse representation of statistics should be preferred, if possible, false otherwise
- Returns:
An unique pointer to an object of type
IClassificationStatisticsProviderFactorythat has been created
-
virtual std::unique_ptr<IClassificationEvaluationMeasureFactory> createClassificationEvaluationMeasureFactory() const = 0¶
Creates and returns a new object of type
IClassificationEvaluationMeasureFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IClassificationEvaluationMeasureFactorythat has been created
-
virtual std::unique_ptr<IDistanceMeasureFactory> createDistanceMeasureFactory() const = 0¶
Creates and returns a new object of type
IDistanceMeasureFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IDistanceMeasureFactorythat has been created
-
virtual std::unique_ptr<IMarginalProbabilityFunctionFactory> createMarginalProbabilityFunctionFactory() const = 0¶
Creates and returns a new object of type
IMarginalProbabilityFunctionFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IMarginalProbabilityFunctionFactorythat has been created or a null pointer, if the loss function does not support the prediction of marginal probabilities
-
virtual std::unique_ptr<IJointProbabilityFunctionFactory> createJointProbabilityFunctionFactory() const = 0¶
Creates and returns a new object of type
IJointProbabilityFunctionFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IJointProbabilityFunctionFactorythat has been created to a null pointer, if the loss function does not support the prediction of joint probabilities
-
inline virtual ~IClassificationLossConfig() override¶
-
class IRegressionLossConfig : public virtual boosting::ILossConfig¶
- #include <loss.hpp>
Defines an interface for all classes that allow to configure a loss function that can be used in regression problems.
Subclassed by boosting::IDecomposableRegressionLossConfig, boosting::INonDecomposableRegressionLossConfig
Public Functions
-
inline virtual ~IRegressionLossConfig() override¶
-
virtual std::unique_ptr<IRegressionStatisticsProviderFactory> createRegressionStatisticsProviderFactory(const IFeatureMatrix &featureMatrix, const IRowWiseRegressionMatrix ®ressionMatrix, const Blas &blas, const Lapack &lapack, bool preferSparseStatistics) const = 0¶
Creates and returns a new object of type
IRegressionStatisticsProviderFactoryaccording to the specified configuration.- Parameters:
featureMatrix – A reference to an object of type
IFeatureMatrixthat provides access to the feature values of the training examplesregressionMatrix – A reference to an object of type
IRowWiseRegressionMatrixthat provides access to the regression scores of the training examplesblas – A reference to an object of type
Blasthat allows to execute BLAS routineslapack – A reference to an object of type
Lapackthat allows to execute LAPACK routinespreferSparseStatistics – True, if a sparse representation of statistics should be preferred, if possible, false otherwise
- Returns:
An unique pointer to an object of type
IRegressionStatisticsProviderFactorythat has been created
-
virtual std::unique_ptr<IRegressionEvaluationMeasureFactory> createRegressionEvaluationMeasureFactory() const = 0¶
Creates and returns a new object of type
IRegressionEvaluationMeasureFactoryaccording to the specified configuration.- Returns:
An unique pointer to an object of type
IRegressionEvaluationMeasureFactorythat has been created
-
inline virtual ~IRegressionLossConfig() override¶
-
class IClassificationLoss : public IDistanceMeasure¶