You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can add some time-awareness to models by applying time-dependent weights on relevance values. This weightening can happen at three places in the recommendation process:
Before model training
At prediction time before get_top_k method
After prediction, as a way to rerank final recommendations
Regardless of the option we choose (or support all of them), we should have functions that calculate these weights.
Arguments should include
decay — the "half-life" of a weight, the number of days the weight is reduced by 50%. Probably float.
limit — the minimal value the weight can reach, to avoid zeroing very old interactions.
There are two options to calculate weights: for each interaction and for each item.
Both take log with timestamp values as an input, but return values are different.
Item-weights return a new DataFrame mapping item_id to weight.
Interaction-weights modify log relevance values in place.
The text was updated successfully, but these errors were encountered:
We can add some time-awareness to models by applying time-dependent weights on relevance values. This weightening can happen at three places in the recommendation process:
get_top_k
methodRegardless of the option we choose (or support all of them), we should have functions that calculate these weights.
Arguments should include
decay
— the "half-life" of a weight, the number of days the weight is reduced by 50%. Probablyfloat
.limit
— the minimal value the weight can reach, to avoid zeroing very old interactions.There are two options to calculate weights: for each interaction and for each item.
Both take
log
withtimestamp
values as an input, but return values are different.Item-weights return a new DataFrame mapping
item_id
toweight
.Interaction-weights modify log
relevance
values in place.The text was updated successfully, but these errors were encountered: