nikdo / wind-alert

Alerts wind freaks about big days.
0 stars 0 forks source link

Weighted frequent spots #124

Open nikdo opened 4 years ago

nikdo commented 4 years ago

User can see spots with less frequent recent visits rather than the ones with more frequent but dated visits.

nikdo commented 4 years ago

Frequent display conditions

Input: We have all spot detail page loads of a user. They consist of URL and a time of visit.

Frequently visited spots are ordered by priority. Priority can be simple number of visits, but that would produce unsatisfying results.

Priority should be computed from number of visits and their age. The older the visit is, the less weight it should have.

So the major question is how should be the weight computed. It should be definitely upward curve. Is it linear or exponential?

2 visits today > 2 visits 1 day ago

1 visit today = 2 visits 14 days ago 1 visit today = 4 visits ? days ago 2 visits today = 3 visits 7 days ago 1 visit today = 10 visits 90 days ago 2 visits today = 20 visits 90 days ago

0 days ago 1 1 day ago 0.9 7 days ago 0.6666 (2/3) 14 days ago 0.5 90 days ago 0.1