File loss_decomposable_logistic.hpp¶
-
namespace boosting
-
class DecomposableLogisticLossConfig : public boosting::IDecomposableClassificationLossConfig¶
- #include <loss_decomposable_logistic.hpp>
Allows to configure a loss function that implements a multivariate variant of the logistic loss that is decomposable.
Public Functions
-
DecomposableLogisticLossConfig(ReadableProperty<IStatisticTypeConfig> statisticTypeConfig)¶
- Parameters:
statisticTypeConfig – A
ReadablePropertythat allows to access theIStatisticTypeConfigthat stores the configuration of the data type that should be used for representing statistics about the quality of predictions for training examples
-
virtual std::unique_ptr<IClassificationStatisticsProviderFactory> createClassificationStatisticsProviderFactory(const IFeatureMatrix &featureMatrix, const IRowWiseLabelMatrix &labelMatrix, const BlasFactory &blasFactory, const LapackFactory &lapackFactory, bool preferSparseStatistics) const override¶
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 examplesblasFactory – A reference to an object of type
BlasFactorythat allows to create objects for executing BLAS routineslapackFactory – A reference to an object of type
LapackFactorythat allows to create objects for executing 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<IMarginalProbabilityFunctionFactory> createMarginalProbabilityFunctionFactory() const override¶
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 override¶
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
-
virtual float64 getDefaultPrediction() const override¶
Returns the default prediction for an example that is not covered by any rules.
- Returns:
The default prediction
Private Members
-
const ReadableProperty<IStatisticTypeConfig> statisticTypeConfig_¶
-
DecomposableLogisticLossConfig(ReadableProperty<IStatisticTypeConfig> statisticTypeConfig)¶
-
class DecomposableLogisticLossConfig : public boosting::IDecomposableClassificationLossConfig¶