File statistics_provider_decomposable_dense.hpp

namespace seco
class DenseDecomposableStatisticsProviderFactory : public IClassificationStatisticsProviderFactory
#include <statistics_provider_decomposable_dense.hpp>

Allows to create instances of the class IStatisticsProvider that provide access to an object of type IDecomposableStatistics using dense data structures for storing the statistics.

Public Functions

DenseDecomposableStatisticsProviderFactory(std::unique_ptr<IDecomposableRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr, std::unique_ptr<IDecomposableRuleEvaluationFactory> regularRuleEvaluationFactoryPtr, std::unique_ptr<IDecomposableRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr)
Parameters:
  • defaultRuleEvaluationFactoryPtr – An unique pointer to an object of type IDecomposableRuleEvaluationFactory that should be used for calculating the predictions, as well as corresponding quality scores, of the default rule

  • regularRuleEvaluationFactoryPtr – An unique pointer to an object of type IDecomposableRuleEvaluationFactory 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 IDecomposableRuleEvaluationFactory that should be used for calculating the predictions, as well as corresponding quality scores, when pruning rules

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<IDecomposableRuleEvaluationFactory> defaultRuleEvaluationFactoryPtr_
const std::unique_ptr<IDecomposableRuleEvaluationFactory> regularRuleEvaluationFactoryPtr_
const std::unique_ptr<IDecomposableRuleEvaluationFactory> pruningRuleEvaluationFactoryPtr_