Classification persistence

Load the rules of a fuzzy rules system using plain text format.

ex_fuzzy.persistence.load_fuzzy_rules(rules_printed: str, fuzzy_variables: list) MasterRuleBase[source]

Load the rules from a string.

Parameters:
  • rules_printed – string with the rules. Follows the specification given by the same printing method of rules.MasterRuleBase

  • fuzzy_variables – list with the linguistic variables. Objects of FuzzyVariable class.

Return mrule_base:

object of MasterRuleBase class that contains the rules.

ex_fuzzy.persistence.load_fuzzy_variables(fuzzy_variables_printed: str) list[source]

Load the linguistic variables from a string.

Parameters:

fuzzy_variables_printed – string with the linguistic variables. Follows the specification given by the same printing method of FuzzyVariable class.

Return fuzzy_variables:

list with the linguistic variables. Objects of FuzzyVariable class.

ex_fuzzy.persistence.print_fuzzy_variable(fuzzy_variable: fuzzyVariable) str[source]

Save the linguistic variable to a string.

Parameters:

fuzzy_variable – linguistic variable. Object of FuzzyVariable class.

Return fuzzy_variable_printed:

string with the linguistic variable. Follows the specification given by the same printing method of FuzzyVariable class.

ex_fuzzy.persistence.save_fuzzy_variables(fuzzy_variables: list) str[source]

Save the linguistic variables to a string.

Parameters:

fuzzy_variables – list with the linguistic variables. Objects of FuzzyVariable class.

Return fuzzy_variables_printed:

string with the linguistic variables. Follows the specification given by the same printing method of FuzzyVariable class.