File statistics_provider_label_wise_sparse.hpp

namespace boosting
class SparseLabelWiseStatisticsProviderFactory : public IStatisticsProviderFactory
#include <statistics_provider_label_wise_sparse.hpp>

Allows to create instances of the class IStatisticsProvider that provide access to an object of type ILabelWiseStatistics, which uses sparse data structures to store the statistics.

Public Functions

SparseLabelWiseStatisticsProviderFactory(std::unique_ptr<ISparseLabelWiseLossFactory> lossFactoryPtr, std::unique_ptr<ISparseEvaluationMeasureFactory> evaluationMeasureFactoryPtr, std::unique_ptr<ISparseLabelWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<ISparseLabelWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr, uint32 numThreads)
Parameters:
  • lossFactoryPtr – An unique pointer to an object of type ISparseLabelWiseLossFactory that allows to create implementations of the loss function that should be used for calculating gradients and Hessians

  • evaluationMeasureFactoryPtr – An unique pointer to an object of type ISparseEvaluationMeasureFactory that allows to create implementations of the evaluation measure that should be used for assessing the quality of predictions

  • regularRuleEvaluationFactoryPtr – An unique pointer to an object of type ISparseLabelWiseRuleEvaluationFactory that should be used for calculating the predictions, as well as corresponding quality scores, of all remaining rules

  • pruningRuleEvaluationFactoryPtr – An unique pointer to an object of type ISparseLabelWiseRuleEvaluationFactory that should be used for calculating the predictions, as well as corresponding quality scores, when pruning rules

  • numThreads – 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<ISparseLabelWiseLossFactory> lossFactoryPtr_
const std::unique_ptr<ISparseEvaluationMeasureFactory> evaluationMeasureFactoryPtr_
const std::unique_ptr<ISparseLabelWiseRuleEvaluationFactory> regularRuleEvaluationFactoryPtr_
const std::unique_ptr<ISparseLabelWiseRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr_
const uint32 numThreads_