Class RuleProcessing
- Defined in File rulePro.h 
Nested Relationships
Nested Types
Class Documentation
- 
class RuleProcessing
- Class to manage and manipulate rules extracted from the Dimlp algorithm. - This class provides functionalities to count, prune, and enlarge rules based on certain criteria and thresholds. - Public Functions - Checks if a rule is empty. - Parameters:
- rule – The rule to check. 
- Returns:
- 1 if the rule is empty, 0 otherwise. 
 
 - 
inline int GetNbRules() const
- Gets the number of rules. - Returns:
- The number of rules. 
 
 - 
inline void GoToBeg()
- Goes to the beginning of the rule list. 
 - 
inline void GoToNext()
- Goes to the next rule in the list. 
 - 
inline std::shared_ptr<DimlpRule> GetRule() const
- Gets the current rule. - Returns:
- Pointer to the current rule. 
 
 - 
inline void Save()
- Saves the current state of the rule list. 
 - 
inline void Previous()
- Goes to the previously saved state of the rule list. 
 - 
int CountAnt()
- Counts the total number of antecedents in all the rules. - Returns:
- The total number of antecedents. 
 
 - 
int CountRules()
- Counts the number of non-empty rules. - Returns:
- The number of non-empty rules. 
 
 - 
void Clean()
- Cleans the rule list by removing unnecessary thresholds. 
 - 
void MixPrune()
- Mixes and prunes the rules. 
 - 
void EnlargeAndPrune()
- Enlarges and prunes the rules. 
 - Inserts a rule into the rule list. - Parameters:
- r – The rule to insert. 
 
 - 
void Del()
- Deletes all rules from the rule list. 
 - Constructor for the RuleProcessing class. - Parameters:
- nbVar – Number of variables. 
- nbHyp – Number of hyperplanes. 
- data – The dataset for rule processing. 
- classPatNet – Vector containing the class patterns of the network. 
- descr – Pointer to the threshold descriptor. 
 
 
 - 
RuleProcessing() = default
- Default constructor for the RuleProcessing class.