Tweaked the Algo (higher penalty for low number of feedbacks)

This commit is contained in:
Dominik Moritz Roth 2021-06-23 18:50:26 +02:00
parent cc6606f468
commit a188e923e2

View File

@ -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