diff --git a/fuzzy_controllers.py b/fuzzy_controllers.py index e3be79e..779ecdf 100644 --- a/fuzzy_controllers.py +++ b/fuzzy_controllers.py @@ -91,9 +91,9 @@ def fuzzy_controler_similiarity(categorical_data: str, numerical_data: str, vect FSS.set_crisp_output_value("big", 1) # TODO: add Word_vector_distance to rules - R1 = "IF (Categorical_similarity IS average) OR (Numerical_difference IS average) THEN (Similarity IS average)" - R2 = "IF (Categorical_similarity IS small) OR (Numerical_difference IS big) THEN (Similarity IS small)" - R3 = "IF (Categorical_similarity IS big) OR (Numerical_difference IS small) THEN (Similarity IS big)" + R1 = "IF (Categorical_similarity IS average) AND (Numerical_difference IS average) THEN (Similarity IS average)" + R2 = "IF (Categorical_similarity IS small) AND (Numerical_difference IS big) THEN (Similarity IS small)" + R3 = "IF (Categorical_similarity IS big) AND (Numerical_difference IS small) THEN (Similarity IS big)" FSS.add_rules([R1, R2, R3])