Welcome to Ex-Fuzzy’s documentation!
Ex-Fuzzy is a library to perform fuzzy logic inference using fuzzy logic, with a special focus on the explainable features of approximate reasoning. Different fuzzy sets are supported, and rules are fitted to a dataset using genetic optimization. We also support fuzzy cognitive_maps.
Check out the Getting Started section for a few examples.
- Getting Started
- Creating fuzzy sets and fuzzy variables
- Using Fuzzy Rules
- Optimizing a Fuzzy rule base for a classification problem
- Visualize rules and results
- Computing fuzzy partitions
- Genetic algorithm details
- General Type 2
- Temporal Fuzzy Sets
- Extending Ex-Fuzzy
- Persistence
- Advanced classifiers
- Studying patterns
- API
- Fuzzy Sets Functions
- Fuzzy Rules Functions
MasterRuleBase
MasterRuleBase.add_rule()
MasterRuleBase.add_rule_base()
MasterRuleBase.compute_association_degrees()
MasterRuleBase.compute_firing_strenghts()
MasterRuleBase.fuzzy_type()
MasterRuleBase.get_antecedents()
MasterRuleBase.get_consequents()
MasterRuleBase.get_consequents_names()
MasterRuleBase.get_rulebase_matrix()
MasterRuleBase.get_rulebases()
MasterRuleBase.get_rules()
MasterRuleBase.get_scores()
MasterRuleBase.get_weights()
MasterRuleBase.n_linguistic_variables()
MasterRuleBase.predict()
MasterRuleBase.print_rules()
MasterRuleBase.purge_rules()
MasterRuleBase.rename_cons()
MasterRuleBase.winning_rule_predict()
Rule
RuleBase
RuleBase.add_rule()
RuleBase.add_rules()
RuleBase.compute_antecedents_memberships()
RuleBase.compute_rule_antecedent_memberships()
RuleBase.forward()
RuleBase.fuzzy_type()
RuleBase.get_rulebase_matrix()
RuleBase.get_rules()
RuleBase.get_scores()
RuleBase.get_weights()
RuleBase.inference()
RuleBase.n_linguistic_variables()
RuleBase.print_rules()
RuleBase.prune_bad_rules()
RuleBase.remove_rule()
RuleBase.remove_rules()
RuleBase.scores()
RuleBaseGT2
RuleBaseT1
RuleBaseT2
RuleError
RuleSimple
compute_antecedents_memberships()
construct_rule_base()
generate_rule_string()
list_rules_to_matrix()
- Rule Evaluation Functions
evalRuleBase
evalRuleBase.add_auxiliary_rule_weights()
evalRuleBase.add_classification_metrics()
evalRuleBase.add_full_evaluation()
evalRuleBase.add_rule_weights()
evalRuleBase.association_degree()
evalRuleBase.aux_dominance_scores()
evalRuleBase.classification_eval()
evalRuleBase.compute_aux_pattern_confidence()
evalRuleBase.compute_aux_pattern_support()
evalRuleBase.compute_pattern_confidence()
evalRuleBase.compute_pattern_support()
evalRuleBase.dominance_scores()
evalRuleBase.effective_rulesize_eval()
evalRuleBase.p_permutation_classifier_validation()
evalRuleBase.size_antecedents_eval()
- Classification evaluation tools
- Rule Visualization
- Evolutionary Algorithms to Fit the rules
BaseFuzzyRulesClassifier
BaseFuzzyRulesClassifier.customized_loss()
BaseFuzzyRulesClassifier.fit()
BaseFuzzyRulesClassifier.forward()
BaseFuzzyRulesClassifier.get_rulebase()
BaseFuzzyRulesClassifier.load_master_rule_base()
BaseFuzzyRulesClassifier.p_value_validation()
BaseFuzzyRulesClassifier.plot_fuzzy_variables()
BaseFuzzyRulesClassifier.predict()
BaseFuzzyRulesClassifier.predict_proba()
BaseFuzzyRulesClassifier.print_rules()
BaseFuzzyRulesClassifier.rename_fuzzy_variables()
BaseFuzzyRulesClassifier.reparametrice_loss()
ExploreRuleBases
FitRuleBase
- Rule Mining methods
- Advanced Classifiers
- Classification persistence
- Fuzzy Cognitive Maps
- Partition utils
assign_time()
classify_temp()
compute_quantiles()
construct_conditional_frequencies()
construct_crisp_categorical_partition()
construct_partitions()
create_multi_tempVariables()
create_tempVariables()
extend_fuzzy_sets_enum()
fixed_quantile_compute()
gt2_fuzzy_partitions_dataset()
mcc_loss()
partition3_quantile_compute()
quartile_compute()
t1_fuzzy_partitions_dataset()
t1_n_partition_parameters()
t1_simple_partition()
t1_simple_triangular_partition()
t1_simple_triangular_partition_parameters()
t1_three_partition()
t2_fuzzy_partitions_dataset()
t2_n_partition_parameters()
temporal_assemble()
temporal_cuts()
- T2 Centroid compute
- Temporal fuzzy sets
NEW_FUZZY_SETS
TMP_FUZZY_SETS
TemporalFuzzyRulesClassifier
eval_temporal_fuzzy_model()
temporalFS
temporalFuzzyVariable
temporalMasterRuleBase
temporalMasterRuleBase.add_rule()
temporalMasterRuleBase.add_rule_base()
temporalMasterRuleBase.compute_firing_strenghts()
temporalMasterRuleBase.fuzzy_type()
temporalMasterRuleBase.get_consequents()
temporalMasterRuleBase.get_rulebase_matrix()
temporalMasterRuleBase.get_rulebases()
temporalMasterRuleBase.get_rules()
temporalMasterRuleBase.get_scores()
temporalMasterRuleBase.print_rules()
temporalMasterRuleBase.purge_rules()
temporalMasterRuleBase.winning_rule_predict()
- Pattern stability analysis