Better recommender scores
This commit is contained in:
parent
b75ede5d89
commit
44c0c189d7
@ -398,7 +398,7 @@ def scoreOpinions(G, globMu, globStd):
|
||||
node['mean'], node['std'] = norm.fit(feedbacks)
|
||||
node['se'] = globStd / math.sqrt(len(feedbacks))
|
||||
ratio = len(feedbacks) / len(adjacens)
|
||||
node['score'] = node['mean']
|
||||
node['score'] = node['mean'] + globStd/3 - node['se']
|
||||
node['feedbacks'] = feedbacks
|
||||
else:
|
||||
node['score'] = None
|
||||
@ -1186,7 +1186,7 @@ def findNewBooks(G, books, mu, num=-1, minRecSco=5):
|
||||
ses.append(min(ses))
|
||||
scores.append(mu)
|
||||
node['fake_se'] = sum(ses)/(len(ses)**1.2) + 0.5 + 0.5 * (len(scores)==2) # This is not how SE works. DILLIGAF?
|
||||
node['score'] = sum(scores)/len(scores)*1.2 - node['fake_se']*2 + 0.5 - 0.1/math.sqrt(len(scores))
|
||||
node['score'] = sum(scores)/len(scores)*1.2 - node['fake_se']*1.6 + 0.5 - 0.1/math.sqrt(len(scores))
|
||||
if len(scores)==2:
|
||||
node['score']*=0.80
|
||||
node['value'] = 20 + 5 * float(node['score'])
|
||||
|
Loading…
Reference in New Issue
Block a user