File rule_evaluation_non_decomposable.hpp¶
-
namespace boosting
-
class INonDecomposableRuleEvaluationFactory¶
- #include <rule_evaluation_non_decomposable.hpp>
Defines an interface for all factories that allow to create instances of the type
IRuleEvaluationthat allow to calculate the predictions of rules, based on the gradients and Hessians that have been calculated according to a non-decomposable loss function.Subclassed by boosting::NonDecomposableCompleteBinnedRuleEvaluationFactory, boosting::NonDecomposableCompleteRuleEvaluationFactory, boosting::NonDecomposableDynamicPartialBinnedRuleEvaluationFactory, boosting::NonDecomposableDynamicPartialRuleEvaluationFactory, boosting::NonDecomposableFixedPartialBinnedRuleEvaluationFactory, boosting::NonDecomposableFixedPartialRuleEvaluationFactory
Public Functions
-
inline virtual ~INonDecomposableRuleEvaluationFactory()¶
-
virtual std::unique_ptr<IRuleEvaluation<DenseNonDecomposableStatisticVector<float32>>> create(const DenseNonDecomposableStatisticVector<float32> &statisticVector, const CompleteIndexVector &indexVector) const = 0¶
Creates and returns a new object of type
IRuleEvaluationthat allows to calculate the predictions of rules that predict for all available outputs, based on the gradients and Hessians that are stored by aDenseNonDecomposableStatisticVector<float32>.- Parameters:
statisticVector – A reference to an object of type
DenseNonDecomposableStatisticVector<float32>. 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 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<DenseNonDecomposableStatisticVector<float32>>> create(const DenseNonDecomposableStatisticVector<float32> &statisticVector, const PartialIndexVector &indexVector) const = 0¶
Creates and returns a new object of type
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 aDenseNonDecomposableStatisticVector<float32>.- Parameters:
statisticVector – A reference to an object of type
DenseNonDecomposableStatisticVector<float32>. 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 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
-
virtual std::unique_ptr<IRuleEvaluation<DenseNonDecomposableStatisticVector<float64>>> create(const DenseNonDecomposableStatisticVector<float64> &statisticVector, const CompleteIndexVector &indexVector) const = 0¶
Creates and returns a new object of type
IRuleEvaluationthat allows to calculate the predictions of rules that predict for all available outputs, based on the gradients and Hessians that are stored by aDenseNonDecomposableStatisticVector<float64>.- Parameters:
statisticVector – A reference to an object of type
DenseNonDecomposableStatisticVector<float64>. 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 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<DenseNonDecomposableStatisticVector<float64>>> create(const DenseNonDecomposableStatisticVector<float64> &statisticVector, const PartialIndexVector &indexVector) const = 0¶
Creates and returns a new object of type
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 aDenseNonDecomposableStatisticVector<float64>.- Parameters:
statisticVector – A reference to an object of type
DenseNonDecomposableStatisticVector<float64>. 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 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
-
inline virtual ~INonDecomposableRuleEvaluationFactory()¶
-
class INonDecomposableRuleEvaluationFactory¶