File statistics_provider_decomposable_sparse.hpp¶
-
namespace boosting
-
class SparseDecomposableClassificationStatisticsProviderFactory : public IClassificationStatisticsProviderFactory¶
- #include <statistics_provider_decomposable_sparse.hpp>
Allows to create instances of the class
IStatisticsProviderthat can be used in classification problems and provide access to an object of typeIDecomposableStatisticsusing sparse data structures for storing the statistics.Public Functions
-
SparseDecomposableClassificationStatisticsProviderFactory(std::unique_ptr<ISparseDecomposableClassificationLossFactory> lossFactoryPtr, std::unique_ptr<ISparseEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
- Parameters:
lossFactoryPtr – An unique pointer to an object of type
ISparseDecomposableClassificationLossFactorythat 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
ISparseEvaluationMeasureFactorythat allows to create implementations of the evaluation measure that should be used for assessing the quality of predictionsregularRuleEvaluationFactoryPtr – An unique pointer to an object of type
ISparseDecomposableRuleEvaluationFactorythat 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
ISparseDecomposableRuleEvaluationFactorythat 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
IClassificationStatisticsProviderFactory::create
-
std::unique_ptr<IStatisticsProvider> create(const BinaryCsrView &labelMatrix) const override¶
See also
IClassificationStatisticsProviderFactory::create
Private Members
-
const std::unique_ptr<ISparseDecomposableClassificationLossFactory> lossFactoryPtr_¶
-
const std::unique_ptr<ISparseEvaluationMeasureFactory> evaluationMeasureFactoryPtr_¶
-
const std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> regularRuleEvaluationFactoryPtr_¶
-
const std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr_¶
-
SparseDecomposableClassificationStatisticsProviderFactory(std::unique_ptr<ISparseDecomposableClassificationLossFactory> lossFactoryPtr, std::unique_ptr<ISparseEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<ISparseDecomposableRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)¶
-
class SparseDecomposableClassificationStatisticsProviderFactory : public IClassificationStatisticsProviderFactory¶