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
SingleRefinementComparator
that 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
MultiRefinementComparator
that 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
IRuleRefinement
in order to retrieve the information that is required to search for potential refinements. It consists ofIImmutableWeightedStatistics
, as well as anIFeatureVector
that 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
get
function.Public Functions
-
inline Result(const IImmutableWeightedStatistics &statistics, const IFeatureVector &featureVector)¶
- Parameters:
statistics – A reference to an object of type
IImmutableWeightedStatistics
that should be used to search for potential refinementsfeatureVector – A reference to an object of type
IFeatureVector
that should be used to search for potential refinements
Public Members
-
const IImmutableWeightedStatistics &statistics¶
A reference to an object of type
IImmutableWeightedStatistics
that should be used to search for potential refinements.
-
const IFeatureVector &featureVector¶
A reference to an object of type
IFeatureVector
that should be used to search for potential refinements.
-
inline Result(const IImmutableWeightedStatistics &statistics, const IFeatureVector &featureVector)¶
-
inline virtual ~ICallback()¶
-
inline virtual ~IRuleRefinement()¶