change value in recommendation from 100 to 200

This commit is contained in:
Maciej Czajka 2023-02-02 18:06:43 +01:00
parent 2c72ca0d5e
commit 1e758054a0

View File

@ -52,7 +52,7 @@ def fuzzy_system(release_year_param, runtime_param, seasons_param, genres_param,
high_recommendation = TriangleFuzzySet(0, 100, 100, term="high_recommendation") high_recommendation = TriangleFuzzySet(0, 100, 100, term="high_recommendation")
FS.add_linguistic_variable("RECOMMENDATION", FS.add_linguistic_variable("RECOMMENDATION",
LinguisticVariable([low_recommendation, medium_recommendation, high_recommendation], LinguisticVariable([low_recommendation, medium_recommendation, high_recommendation],
universe_of_discourse=[0, 200])) universe_of_discourse=[0, 100]))
# # RULES # # RULES
# RULE1 = "IF (RELEASE_YEAR IS older) AND (RUNTIME IS longer) AND (SEASONS IS more) THEN (RECOMMENDATION IS low_recommendation)" # RULE1 = "IF (RELEASE_YEAR IS older) AND (RUNTIME IS longer) AND (SEASONS IS more) THEN (RECOMMENDATION IS low_recommendation)"