ex_fuzzy.rule_mining.prune_rules_confidence_lift#
- ex_fuzzy.rule_mining.prune_rules_confidence_lift(x, y, rules, fuzzy_variables, confidence_threshold=0.5, lift_threshold=1.05)[source]#
Removes the rules from the rule base that do not meet a minimum value for confidence and lift measures.
Confidence is the ratio of rules that have a particular antecedent and consequent, and those that only have the antecedent. Lift is ratio between confidence and expected confidence, which is the percentage of class samples in the original data.
- Parameters:
x (DataFrame) – data to mine. samples x features.
y (array) – class vector.
rules (MasterRuleBase) – MasterRuleBase object with the rules to prune.
fuzzy_variables (list[fuzzyVariable]) – a list of the fuzzy variables per antecedent.
confidence_threshold (float) – minimum confidence required to the rules.
lift_threshold (float) – minimum lift required to the rules.