mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove the time_bonus_score as these scores are precomputed
This commit is contained in:
parent
cd842393f6
commit
a302a97b83
1 changed files with 1 additions and 4 deletions
|
|
@ -159,13 +159,10 @@ def load_global_features():
|
|||
|
||||
|
||||
def compute_score(user_id, item_features):
|
||||
alpha = 0.2
|
||||
interaction_score = compute_interaction_score(user_id, item_features)
|
||||
time_bonus_score = compute_time_bonus_score(item_features)
|
||||
return {
|
||||
'score': (1 - alpha) * interaction_score + alpha * time_bonus_score,
|
||||
'score': interaction_score,
|
||||
'interaction_score': interaction_score,
|
||||
'time_bonus_score': time_bonus_score
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue