File default_rule.hpp¶
-
class IDefaultRuleConfig¶
- #include <default_rule.hpp>
Defines an interface for all classes that allow to configure the default rule that is included in a rule-based model.
Subclassed by DefaultRuleConfig
Public Functions
-
inline virtual ~IDefaultRuleConfig()¶
-
virtual bool isDefaultRuleUsed(const IRowWiseLabelMatrix &labelMatrix) const = 0¶
Returns whether a default rule is included or not.
- Parameters:
labelMatrix – A reference to an object of type
IRowWiseLabelMatrix
that provides row-wise access to the labels of the training examples- Returns:
True, if a default rule is included, false otherwise
-
inline virtual ~IDefaultRuleConfig()¶
-
class DefaultRuleConfig : public IDefaultRuleConfig¶
- #include <default_rule.hpp>
Allows to configure whether a default rule should be included in a rule-based model or not.
Public Functions
-
DefaultRuleConfig(bool useDefaultRule)¶
- Parameters:
useDefaultRule – True, if a default rule should be included, false otherwise
-
virtual bool isDefaultRuleUsed(const IRowWiseLabelMatrix &labelMatrix) const override¶
Returns whether a default rule is included or not.
- Parameters:
labelMatrix – A reference to an object of type
IRowWiseLabelMatrix
that provides row-wise access to the labels of the training examples- Returns:
True, if a default rule is included, false otherwise
Private Members
-
const bool useDefaultRule_¶
-
DefaultRuleConfig(bool useDefaultRule)¶