Created
August 22, 2016 01:35
-
-
Save sjstebbins/b762b39d6021baa145ae546282bf81cb to your computer and use it in GitHub Desktop.
Muse-multiply songs node based on play_counts to weight songs played more
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# multiply songs node based on play_counts to weight songs played more | |
library_tracks = [] | |
for i,attributes in enumerate(seed_data['attributes']): | |
library_tracks.extend(repeat(attributes, seed_data['play_counts'][i])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment