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