File statistics.hpp

namespace boosting
class IBoostingStatistics : public IStatistics
#include <statistics.hpp>

Defines an interface for all classes that provide access to gradients and Hessians which serve as the basis for learning a new boosted rule or refining an existing one.

Subclassed by boosting::IExampleWiseStatistics< ExampleWiseRuleEvaluationFactory, LabelWiseRuleEvaluationFactory >, boosting::ILabelWiseStatistics< RuleEvaluationFactory >

Public Types

typedef std::function<void(const CContiguousView<float64>&)> DenseScoreMatrixVisitor

A visitor function for handling score matrices of the type CContiguousView.

typedef std::function<void(const SparseSetView<float64>&)> SparseScoreMatrixVisitor

A visitor function for handling score matrices of the type SparseSetView.

Public Functions

inline virtual ~IBoostingStatistics()
virtual void visitScoreMatrix(DenseScoreMatrixVisitor denseVisitor, SparseScoreMatrixVisitor sparseVisitor) const = 0

Invokes one of the given visitor functions, depending on which one is able to handle the type of matrix that is used to store the currently predicted scores.

Parameters:
  • denseVisitor – The visitor function for handling objects of the type CContiguousView

  • sparseVisitor – The visitor function for handling objects of the type SparseSetView