From 8c618ab9888354ca287ff609ab4b79f6291de112 Mon Sep 17 00:00:00 2001 From: pythagoraswitch Date: Sat, 1 Dec 2018 11:02:36 +0100 Subject: [PATCH] changed the magnitude of random bias in user keyword ranking --- recommendation_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recommendation_engine.py b/recommendation_engine.py index 5759b3d..00cd055 100644 --- a/recommendation_engine.py +++ b/recommendation_engine.py @@ -283,7 +283,7 @@ class Engine: character_tags["VICTORIA OLEGOVNA SKITSKAYA"] = character_tags.get("VIKTORIA OLEGOVNA SKITSKAYA",0) score = {} for playlist in playlists: - score[playlist['name']] = random.random() * 0.001 + score[playlist['name']] = random.random() * 0.1 for tag in playlist['tags']: if tag in theme_tags: score[playlist['name']] += theme_tags[tag] * themeWeights