change OR to AND
This commit is contained in:
parent
d5f7343c66
commit
d4701cd745
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user