File statistics_provider_example_wise_dense.hpp¶
-
namespace boosting
-
class DenseExampleWiseStatisticsProviderFactory : public IStatisticsProviderFactory¶
- #include <statistics_provider_example_wise_dense.hpp>
Allows to create instances of the class
IStatisticsProviderthat provide access to an object of typeIExampleWiseStatistics, which uses dense data structures to store the statistics.Public Functions
-
DenseExampleWiseStatisticsProviderFactory(std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr, std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
- Parameters:
lossFactoryPtr – An unique pointer to an object of type
IExampleWiseLossFactorythat allows to create implementations of the loss function that should be used for calculating gradients and HessiansevaluationMeasureFactoryPtr – An unique pointer to an object of type
IEvaluationMeasureFactorythat allows to create implementations of the evaluation measure that should be used for assessing the quality of predictionsdefaultRuleEvaluationFactoryPtr – An unique pointer to an object of type
IExampleWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, of the default ruleregularRuleEvaluationFactoryPtr – An unique pointer to an object of type
IExampleWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, of all remaining rulespruningRuleEvaluationFactoryPtr – An unique pointer to an object of type
IExampleWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, when pruning rulesnumThreads – The number of CPU threads to be used to calculate the initial statistics in parallel. Must be at least 1
-
std::unique_ptr<IStatisticsProvider> create(const CContiguousView<const uint8> &labelMatrix) const override¶
See also
IStatisticsProviderFactory::create
-
std::unique_ptr<IStatisticsProvider> create(const BinaryCsrView &labelMatrix) const override¶
See also
IStatisticsProviderFactory::create
Private Members
-
const std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr_¶
-
const std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr_¶
-
const std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr_¶
-
const std::unique_ptr<IExampleWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr_¶
-
const std::unique_ptr<IExampleWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr_¶
-
DenseExampleWiseStatisticsProviderFactory(std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr, std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
-
class DenseConvertibleExampleWiseStatisticsProviderFactory : public IStatisticsProviderFactory¶
- #include <statistics_provider_example_wise_dense.hpp>
Allows to create instances of the class
IStatisticsProviderthat provide access to an object of typeIExampleWiseStatistics, which uses dense data structures to store the statistics and can be converted into an object of typeILabelWiseStatistics.Public Functions
-
DenseConvertibleExampleWiseStatisticsProviderFactory(std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr, std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr, std::unique_ptr<ILabelWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<ILabelWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
- Parameters:
lossFactoryPtr – An unique pointer to an object of type
IExampleWiseLossFactorythat allows to create implementations of the loss function that should be used for calculating gradients and HessiansevaluationMeasureFactoryPtr – An unique pointer to an object of type
IEvaluationMeasureFactorythat allows to create implementations of the evaluation measure that should be used for assessing the quality of predictionsdefaultRuleEvaluationFactoryPtr – An unique pointer to an object of type
IExampleWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, of the default ruleregularRuleEvaluationFactoryPtr – An unique pointer to an object of type
ILabelWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, of all remaining rulespruningRuleEvaluationFactoryPtr – An unique pointer to an object of type
ILabelWiseRuleEvaluationFactorythat should be used for calculating the predictions, as well as corresponding quality scores, when pruning rulesnumThreads – The number of CPU threads to be used to calculate the initial statistics in parallel. Must be at least 1
-
std::unique_ptr<IStatisticsProvider> create(const CContiguousView<const uint8> &labelMatrix) const override¶
See also
IStatisticsProviderFactory::create
-
std::unique_ptr<IStatisticsProvider> create(const BinaryCsrView &labelMatrix) const override¶
See also
IStatisticsProviderFactory::create
Private Members
-
const std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr_¶
-
const std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr_¶
-
const std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr_¶
-
const std::unique_ptr<ILabelWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr_¶
-
const std::unique_ptr<ILabelWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr_¶
-
DenseConvertibleExampleWiseStatisticsProviderFactory(std::unique_ptr<IExampleWiseLossFactory> lossFactoryPtr, std::unique_ptr<IEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<IExampleWiseRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr, std::unique_ptr<ILabelWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<ILabelWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
-
class DenseExampleWiseStatisticsProviderFactory : public IStatisticsProviderFactory¶