From a188e923e2044853be55690253850c50f8c0266d Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Wed, 23 Jun 2021 18:50:26 +0200 Subject: [PATCH] Tweaked the Algo (higher penalty for low number of feedbacks) --- caliGraph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/caliGraph.py b/caliGraph.py index 74f4276..4174faf 100755 --- a/caliGraph.py +++ b/caliGraph.py @@ -275,8 +275,9 @@ def scoreOpinions(G, globMu, globStd, errorFac=0.7): node['se'] = globStd / math.sqrt(len(feedbacks)) ratio = len(feedbacks) / len(adjacens) node['score'] = node['mean'] - errorFac * \ - node['se']*(6/7 + (1-ratio)/7) + 0.001 * \ - (node['t'] == 'recommender') + node['se']*(6/7 + (1-ratio)/7) + 0.01 * \ + (node['t'] == 'recommender') \ + - 0.5 / len(feedbacks)**2 node['feedbacks'] = feedbacks else: node['score'] = None