File rule_evaluation_decomposable_complete_binned.hpp¶
-
namespace boosting
-
class DecomposableCompleteBinnedRuleEvaluationFactory : public boosting::IDecomposableRuleEvaluationFactory¶
- #include <rule_evaluation_decomposable_complete_binned.hpp>
Allows to create instances of the class
IDecomposableRuleEvaluationFactorythat allow to calculate the predictions of complete rules, which predict for all available outputs, using gradient-based label binning.Public Functions
-
DecomposableCompleteBinnedRuleEvaluationFactory(float64 l1RegularizationWeight, float64 l2RegularizationWeight, std::unique_ptr<ILabelBinningFactory> labelBinningFactoryPtr)¶
- Parameters:
l1RegularizationWeight – The weight of the L1 regularization that is applied for calculating the scores to be predicted by rules
l2RegularizationWeight – The weight of the L2 regularization that is applied for calculating the scores to be predicted by rules
labelBinningFactoryPtr – An unique pointer to an object of type
ILabelBinningFactorythat allows to create the implementation to be used to assign labels to bins
-
virtual std::unique_ptr<IRuleEvaluation<DenseDecomposableStatisticVector>> create(const DenseDecomposableStatisticVector &statisticVector, const CompleteIndexVector &indexVector) const override¶
Creates a new instance of the class
IRuleEvaluationthat allows to calculate the predictions of rules that predict for all available outputs, based on the gradients and Hessians that are stored by aDenseDecomposableStatisticVector.- Parameters:
statisticVector – A reference to an object of type
DenseDecomposableStatisticVector. This vector is only used to identify the function that is able to deal with this particular type of vector via function overloadingindexVector – A reference to an object of the type
CompleteIndexVectorthat provides access to the indices of the outputs for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
virtual std::unique_ptr<IRuleEvaluation<DenseDecomposableStatisticVector>> create(const DenseDecomposableStatisticVector &statisticVector, const PartialIndexVector &indexVector) const override¶
Creates a new instance of the class
IRuleEvaluationthat allows to calculate the predictions of rules that predict for a subset of the available outputs, based on the gradients and Hessians that are stored by aDenseDecomposableStatisticVector.- Parameters:
statisticVector – A reference to an object of type
DenseDecomposableStatisticVector. This vector is only used to identify the function that is able to deal with this particular type of vector via function overloadingindexVector – A reference to an object of the type
PartialIndexVectorthat provides access to the indices of the outputs for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
DecomposableCompleteBinnedRuleEvaluationFactory(float64 l1RegularizationWeight, float64 l2RegularizationWeight, std::unique_ptr<ILabelBinningFactory> labelBinningFactoryPtr)¶
-
class DecomposableCompleteBinnedRuleEvaluationFactory : public boosting::IDecomposableRuleEvaluationFactory¶