small change to fuzzy controler

This commit is contained in:
Kamila Bobkowska 2023-01-31 19:26:24 +01:00
parent c4154ee656
commit d5f7343c66

View File

@ -101,7 +101,7 @@ def fuzzy_controler_similiarity(categorical_data: str, numerical_data: str, vect
if show_graph: if show_graph:
plot_graphs(FS=FSS) plot_graphs(FS=FSS)
FSS.set_variable("Categorical_similarity", categorical_data) FSS.set_variable("Categorical_similarity", vector_distance)
FSS.set_variable("Numerical_difference", numerical_data) FSS.set_variable("Numerical_difference", numerical_data)
popularity = FSS.Sugeno_inference(["Similarity"], ignore_warnings=True) popularity = FSS.Sugeno_inference(["Similarity"], ignore_warnings=True)
return round(popularity["Similarity"], 2) return round(popularity["Similarity"], 2)