ex_fuzzy.rule_mining.generate_rules_from_itemsets#

ex_fuzzy.rule_mining.generate_rules_from_itemsets(itemsets, nAnts)[source]#

Given a list of itemsets, it creates the rules for each one and returns a list of rules containing them.

Parameters:
  • itemsets (list) – list of tuple (antecedent, linguistic variable value)

  • nAnts (int) – number of possible antecedents.

Returns:

the rules for ech itemset.

Return type:

list[RuleSimple]