File rule_refinement.hpp¶
-
class IRuleRefinement¶
- #include <rule_refinement.hpp>
Defines an interface for all classes that allow to find the best refinement of existing rules.
Public Functions
-
inline virtual ~IRuleRefinement()¶
-
virtual bool findRefinement(SingleRefinementComparator &comparator, IFeatureSubspace &featureSubspace, const IIndexVector &featureIndices, const IIndexVector &outputIndices, uint32 minCoverage) const = 0¶
Finds the best refinement of an existing rule.
- Parameters:
comparator – A reference to an object of type
SingleRefinementComparatorthat should be used for comparing potential refinementsfeatureSubspace – A reference to an object of type
IFeatureSubspacethat should be used to search for the potential refinementsfeatureIndices – A reference to an object of type
IIndexVectorthat provides access to the indices of the features that should be consideredoutputIndices – A reference to an object of type
IIndexVectorthat provides access to the indices of the outputs for which the refinement(s) may predictminCoverage – The minimum number of examples that must be covered by the refinements
- Returns:
True, if at least one refinement has been found, false otherwise
-
virtual bool findRefinement(FixedRefinementComparator &comparator, IFeatureSubspace &featureSubspace, const IIndexVector &featureIndices, const IIndexVector &outputIndices, uint32 minCoverage) const = 0¶
Finds the best refinements of an existing rule.
- Parameters:
comparator – A reference to an object of type
FixedRefinementComparatorthat should be used for comparing potential refinementsfeatureSubspace – A reference to an object of type
IFeatureSubspacethat should be used to search for the potential refinementsfeatureIndices – A reference to an object of type
IIndexVectorthat provides access to the indices of the features that should be consideredoutputIndices – A reference to an object of type
IIndexVectorthat provides access to the indices of the outputs for which the refinement(s) may predictminCoverage – The minimum number of examples that must be covered by the refinements
- Returns:
True, if at least one refinement has been found, false otherwise
-
inline virtual ~IRuleRefinement()¶
-
class IRuleRefinementFactory¶
- #include <rule_refinement.hpp>
Defines an interface for all factories that allow to create instances of the type
IRuleRefinement.Public Functions
-
inline virtual ~IRuleRefinementFactory()¶
-
virtual std::unique_ptr<IRuleRefinement> create() const = 0¶
Creates and returns a new object of type
IRuleRefinement.- Returns:
An unique pointer to an object of type
IRuleRefinementthat has been created
-
inline virtual ~IRuleRefinementFactory()¶
-
class IRuleRefinementConfig¶
- #include <rule_refinement.hpp>
Defines an interface for all classes that allow to configure a method for finding the best refinements of existing rules.
Subclassed by StatisticsBasedRuleRefinementConfig
Public Functions
-
inline virtual ~IRuleRefinementConfig()¶
-
virtual std::unique_ptr<IRuleRefinementFactory> createRuleRefinementFactory(const IFeatureMatrix &featureMatrix, uint32 numOutputs) const = 0¶
Creates and returns an new object of type
IRuleRefinementFactory.- Parameters:
featureMatrix – A reference to an object of type
IFeatureMatrixthat provides access to the feature values of the training examplesnumOutputs – The total number of available outputs
- Returns:
An unique pointer to an object of type
IRuleRefinementFactorythat has been created
-
inline virtual ~IRuleRefinementConfig()¶