Tweaked the Algo (higher penalty for low number of feedbacks)
This commit is contained in:
parent
cc6606f468
commit
a188e923e2
@ -275,8 +275,9 @@ def scoreOpinions(G, globMu, globStd, errorFac=0.7):
|
|||||||
node['se'] = globStd / math.sqrt(len(feedbacks))
|
node['se'] = globStd / math.sqrt(len(feedbacks))
|
||||||
ratio = len(feedbacks) / len(adjacens)
|
ratio = len(feedbacks) / len(adjacens)
|
||||||
node['score'] = node['mean'] - errorFac * \
|
node['score'] = node['mean'] - errorFac * \
|
||||||
node['se']*(6/7 + (1-ratio)/7) + 0.001 * \
|
node['se']*(6/7 + (1-ratio)/7) + 0.01 * \
|
||||||
(node['t'] == 'recommender')
|
(node['t'] == 'recommender') \
|
||||||
|
- 0.5 / len(feedbacks)**2
|
||||||
node['feedbacks'] = feedbacks
|
node['feedbacks'] = feedbacks
|
||||||
else:
|
else:
|
||||||
node['score'] = None
|
node['score'] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user