Add some fixes

This commit is contained in:
Aleksey Filippov 2024-11-18 21:30:22 +04:00
parent d30c1005e9
commit 9779bf796c
2 changed files with 44 additions and 25 deletions

File diff suppressed because one or more lines are too long

View File

@ -334,7 +334,7 @@ def _delete_same_fuzzy_rules(
same_rules.append(rule1_index)
break
# If antecedents is equals, but consequents is not equals then
# Remove rule with the higher weight
# Remove rule with the higher antecedent weight
if str(rule1[0]) == str(rule2[0]) and str(rule1[2]) <= str(rule2[2]):
same_rules.append(rule2_index)
break