Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sjstebbins
Created August 22, 2016 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjstebbins/b762b39d6021baa145ae546282bf81cb to your computer and use it in GitHub Desktop.
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
# 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