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.
Subclassed by FeatureBasedRuleRefinement< IndexVector >
Public Functions
-
inline virtual ~IRuleRefinement()¶
-
virtual void findRefinement(SingleRefinementComparator &comparator, 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 refinementsminCoverage – The minimum number of examples that must be covered by the refinement
-
virtual void findRefinement(FixedRefinementComparator &comparator, uint32 minCoverage) const = 0¶
Finds the best refinements of an existing rule.
- Parameters:
comparator – A reference to an object of type
MultiRefinementComparatorthat should be used for comparing potential refinementsminCoverage – The minimum number of examples that must be covered by the refinements
-
class ICallback¶
- #include <rule_refinement.hpp>
Defines an interface for callbacks that may be invoked by subclasses of the the class
IRuleRefinementin order to retrieve the information that is required to search for potential refinements. It consists ofIImmutableWeightedStatistics, as well as anIFeatureVectorthat allows to determine the thresholds that may be used by potential conditions.Public Functions
-
inline virtual ~ICallback()¶
-
struct Result¶
- #include <rule_refinement.hpp>
The data that is provided via the callback’s
getfunction.Public Functions
-
inline Result(const IImmutableWeightedStatistics &statistics, const IFeatureVector &featureVector)¶
- Parameters:
statistics – A reference to an object of type
IImmutableWeightedStatisticsthat should be used to search for potential refinementsfeatureVector – A reference to an object of type
IFeatureVectorthat should be used to search for potential refinements
Public Members
-
const IImmutableWeightedStatistics &statistics¶
A reference to an object of type
IImmutableWeightedStatisticsthat should be used to search for potential refinements.
-
const IFeatureVector &featureVector¶
A reference to an object of type
IFeatureVectorthat should be used to search for potential refinements.
-
inline Result(const IImmutableWeightedStatistics &statistics, const IFeatureVector &featureVector)¶
-
inline virtual ~ICallback()¶
-
inline virtual ~IRuleRefinement()¶