Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balancing sections over all sessions in an experiment #1466

Open
BeritJanssen opened this issue Jan 14, 2025 · 0 comments
Open

Balancing sections over all sessions in an experiment #1466

BeritJanssen opened this issue Jan 14, 2025 · 0 comments

Comments

@BeritJanssen
Copy link
Collaborator

BeritJanssen commented Jan 14, 2025

Is your feature request related to a problem? Please describe.
At this point, sections won't repeat within a session when using the get_unused_song_ids function. However, there is no balancing happening to make sure that sections which have been played fewer times over all sessions will have a higher chance to be picked.

Describe the solution you'd like
We can make use of the section.play_count in order to achieve such balancing (i.e., pick from the sections with the lowest play_count, but probably controlling at the same time for other section fields, such as tag, group, song-, artist- or filename)

Additional context
To make sure sessions from different blocks do not increase play counts for the same group of sections in an unexpected way, we may change experiment.playlist from a ManyToManyField to a ForeignKey on the Playlist side, essentially enforcing that each block define its own, unique playlist(s). Probably not so critical if documented well though.

@BeritJanssen BeritJanssen added this to the MUSCLE Aftermath milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant