| ▲ | Hobadee 4 hours ago | |||||||
I would rather have the same "random" order than what Spotify does; random never plays some songs, and overplays other. I get true random has the possibility of that, but when I've heard the same song for the 4th time in an hour, on a 20-hour playlist, something is wrong. | ||||||||
| ▲ | cooljoseph 2 hours ago | parent [-] | |||||||
It sounds like maybe what you want is to have the "shuffle" mode play songs close to truly randomly while still penalizing songs that have been played too much recently. This gives us an optimization problem:
where β is an inverse temperature determining how much you dislike repetition and π is your policy. Here I've arbitrarily chosen a reverse KL divergence because it leads to a nicer closed form:
I wonder if anyone has implemented this before in a music playlist. | ||||||||
| ||||||||