File rule_evaluation_decomposable.hpp

namespace seco
class IDecomposableRuleEvaluationFactory
#include <rule_evaluation_decomposable.hpp>

Defines an interface for all factories that allow to create instances of the type IRuleEvaluation that allow to calculate the predictions of rules, as well as their overall quality, based on confusion matrices that have been obtained for each output individually.

Subclassed by seco::DecomposablePartialRuleEvaluationFactory, seco::DecomposableSingleOutputRuleEvaluationFactory

Public Functions

inline virtual ~IDecomposableRuleEvaluationFactory()
virtual std::unique_ptr<IRuleEvaluation> create(const CompleteIndexVector &indexVector) const = 0

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 = 0

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