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
IRuleEvaluationthat 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<DenseConfusionMatrixVector<uint32>>> create(const DenseConfusionMatrixVector<uint32> &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 labels.- Parameters:
statisticVector – A reference to an object of type
DenseConfusionMatrixVector<uint32>. 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 labels for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
virtual std::unique_ptr<IRuleEvaluation<DenseConfusionMatrixVector<uint32>>> create(const DenseConfusionMatrixVector<uint32> &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 labels.- Parameters:
statisticVector – A reference to an object of type
DenseConfusionMatrixVector<uint32>. 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 labels for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
virtual std::unique_ptr<IRuleEvaluation<DenseConfusionMatrixVector<float32>>> create(const DenseConfusionMatrixVector<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 labels.- Parameters:
statisticVector – A reference to an object of type
DenseConfusionMatrixVector<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 labels for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
virtual std::unique_ptr<IRuleEvaluation<DenseConfusionMatrixVector<float32>>> create(const DenseConfusionMatrixVector<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 labels.- Parameters:
statisticVector – A reference to an object of type
DenseConfusionMatrixVector<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 labels for which the rules may predict
- Returns:
An unique pointer to an object of type
IRuleEvaluationthat has been created
-
inline virtual ~IDecomposableRuleEvaluationFactory()¶
-
class IDecomposableRuleEvaluationFactory¶