change OR to AND

This commit is contained in:
s444417 2023-02-01 16:15:56 +01:00
parent d5f7343c66
commit d4701cd745

View File

@ -91,9 +91,9 @@ def fuzzy_controler_similiarity(categorical_data: str, numerical_data: str, vect
FSS.set_crisp_output_value("big", 1) FSS.set_crisp_output_value("big", 1)
# TODO: add Word_vector_distance to rules # TODO: add Word_vector_distance to rules
R1 = "IF (Categorical_similarity IS average) OR (Numerical_difference IS average) THEN (Similarity IS average)" R1 = "IF (Categorical_similarity IS average) AND (Numerical_difference IS average) THEN (Similarity IS average)"
R2 = "IF (Categorical_similarity IS small) OR (Numerical_difference IS big) THEN (Similarity IS small)" R2 = "IF (Categorical_similarity IS small) AND (Numerical_difference IS big) THEN (Similarity IS small)"
R3 = "IF (Categorical_similarity IS big) OR (Numerical_difference IS small) THEN (Similarity IS big)" R3 = "IF (Categorical_similarity IS big) AND (Numerical_difference IS small) THEN (Similarity IS big)"
FSS.add_rules([R1, R2, R3]) FSS.add_rules([R1, R2, R3])