File statistic_format_auto.hpp¶
-
namespace boosting
-
class AutomaticStatisticsConfig : public boosting::IClassificationStatisticsConfig, public boosting::IRegressionStatisticsConfig¶
- #include <statistic_format_auto.hpp>
Allows to configure a method that automatically decides for a format for storing statistics about the quality of predictions for training examples.
Public Functions
-
AutomaticStatisticsConfig(ReadableProperty<IClassificationLossConfig> classificationLossConfig, ReadableProperty<IRegressionLossConfig> regressionLossConfig, ReadableProperty<IHeadConfig> headConfig, ReadableProperty<IDefaultRuleConfig> defaultRuleConfig)¶
- Parameters:
classificationLossConfig – A
ReadablePropertythat allows to access theIClassificationLossConfigthat stores the configuration of the loss functionregressionLossConfig – A
ReadablePropertythat allows to access theIRegressionLossConfigthat stores the configuration of the loss functionheadConfig – A
ReadablePropertythat allows to access theIHeadConfigthat stores the configuration of the rule headsdefaultRuleConfig – A
ReadablePropertythat allows to access theIDefaultRuleConfigthat stores the configuration of the default rule
-
virtual std::unique_ptr<IClassificationStatisticsProviderFactory> createClassificationStatisticsProviderFactory(const IFeatureMatrix &featureMatrix, const IRowWiseLabelMatrix &labelMatrix, const BlasFactory &blasFactory, const LapackFactory &lapackFactory) 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 row-wise 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 object for executing LAPACK routines
- Returns:
An unique pointer to an object of type
IClassificationStatisticsProviderFactorythat has been created
-
virtual std::unique_ptr<IRegressionStatisticsProviderFactory> createRegressionStatisticsProviderFactory(const IFeatureMatrix &featureMatrix, const IRowWiseRegressionMatrix ®ressionMatrix, const BlasFactory &blasFactory, const LapackFactory &lapackFactory) const override¶
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 row-wise access to the regression scores 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 routines
- Returns:
An unique pointer to an object of type
IRegressionStatisticsProviderFactorythat has been created
-
virtual bool isDense() const override¶
Returns whether a dense format is used for storing statistics about the quality of predictions for training examples or not.
- Returns:
True, if a dense format is used, false otherwise
-
virtual bool isSparse() const override¶
Returns whether a sparse format is used for storing statistics about the quality of predictions for training examples or not.
- Returns:
True, if a sparse format is used, false otherwise
Private Members
-
const ReadableProperty<IClassificationLossConfig> classificationLossConfig_¶
-
const ReadableProperty<IRegressionLossConfig> regressionLossConfig_¶
-
const ReadableProperty<IHeadConfig> headConfig_¶
-
const ReadableProperty<IDefaultRuleConfig> defaultRuleConfig_¶
-
AutomaticStatisticsConfig(ReadableProperty<IClassificationLossConfig> classificationLossConfig, ReadableProperty<IRegressionLossConfig> regressionLossConfig, ReadableProperty<IHeadConfig> headConfig, ReadableProperty<IDefaultRuleConfig> defaultRuleConfig)¶
-
class AutomaticStatisticsConfig : public boosting::IClassificationStatisticsConfig, public boosting::IRegressionStatisticsConfig¶