feat(taste): learn what I like from what I listen to
- taste package: each listening event has a value (complete +1, a play that counts +0.5, a skip that does not count -1, a short play 0), older events weigh less (half-life 90 days, taste.half_life_days), and the values of an artist become a preference in (-1, 1) with tanh. - Tag profile built from the artists I like: genres of my files plus the tags already stored from providers, each source scaled to its own best tag. - GET /me/taste shows the liked artists and the tags. It reads local data only and never asks a provider. - TasteRepo reads events, names and tags; tests on SQLite and PostgreSQL. - OpenAPI spec, contract test, README and example config updated. Closes #27
This commit is contained in:
parent
4da79601d2
commit
544ec67dd1
1 changed files with 1271 additions and 1 deletions
|
|
@ -26,4 +26,7 @@ refresh_ttl_hours = 720 # lifetime of a refresh token (30 days)
|
|||
[listening]
|
||||
min_listen_seconds = 20 # a play counts as a listen after this long, or when it completes
|
||||
|
||||
[taste]
|
||||
half_life_days = 90 # an old listen weighs half as much after this many days
|
||||
|
||||
# Last.fm and MusicBrainz are set up through the API, not here: PUT /api/v1/providers/{name}.
|
||||
|
|
|
|||
Loading…
Reference in a new issue