File rule_evaluation_label_wise_partial.hpp¶
-
namespace seco
-
class LabelWisePartialRuleEvaluationFactory : public seco::ILabelWiseRuleEvaluationFactory¶
- #include <rule_evaluation_label_wise_partial.hpp>
Allows to create instances of the class
ILabelWiseRuleEvaluationFactory
that allow to calculate the predictions of partial rules, which predict for a subset of the available labels.Public Functions
-
LabelWisePartialRuleEvaluationFactory(std::unique_ptr<IHeuristicFactory> heuristicFactoryPtr, std::unique_ptr<ILiftFunctionFactory> liftFunctionFactoryPtr)¶
- Parameters:
heuristicFactoryPtr – An unique pointer to an object of type
IHeuristicFactory
, that allows to create implementations of the heuristic to be optimizedliftFunctionFactoryPtr – An unique pointer to an object of type
ILiftFunction
that should affect the quality of rules, depending on how many labels they predict
-
virtual std::unique_ptr<IRuleEvaluation> create(const CompleteIndexVector &indexVector) const override¶
Creates and returns a new object of type
IRuleEvaluation
that allows to calculate the predictions of rules that predict for all available labels.- Parameters:
indexVector – A reference to an object of type
CompleteIndexVector
that provides access to the indices of the labels for which the rules may predict- Returns:
An unique pointer to an object of type
IRuleEvaluation
that has been created
-
virtual std::unique_ptr<IRuleEvaluation> create(const PartialIndexVector &indexVector) const override¶
Creates and returns a new object of type
IRuleEvaluation
that allows to calculate the predictions of rules that predict for a subset of the available labels.- Parameters:
indexVector – A reference to an object of type
PartialIndexVector
that provides access to the indices of the labels for which the rules may predict- Returns:
An unique pointer to an object of type
IRuleEvaluation
that has been created
Private Members
-
const std::unique_ptr<IHeuristicFactory> heuristicFactoryPtr_¶
-
const std::unique_ptr<ILiftFunctionFactory> liftFunctionFactoryPtr_¶
-
LabelWisePartialRuleEvaluationFactory(std::unique_ptr<IHeuristicFactory> heuristicFactoryPtr, std::unique_ptr<ILiftFunctionFactory> liftFunctionFactoryPtr)¶
-
class LabelWisePartialRuleEvaluationFactory : public seco::ILabelWiseRuleEvaluationFactory¶