Using conda, the requirements are:
There is also a requirements.txt file in the examples directory that has exact package versions that should work with pip.
# Note: This is a symbolic link from: datascience/modelling/model_application/
from stream_predictor import streams
import warnings
warnings.simplefilter("ignore", UserWarning) # Upgraded scikit-learn but using previous version of pickled file
?streams
pop_5 = 45
playlists = {}
streams(pop_5, playlists)
pop_5 = 45
playlists = {'37i9dQZEVXbLRQDuF5jeBp' : 8 }
streams(pop_5, playlists)
pop_5 = 45
playlists = {'doesnt_exist' : 1 }
streams(pop_5, playlists)
# This yields a smaller outcome than the previous with only the first playlist
pop_5 = 45
playlists = {'37i9dQZEVXbLRQDuF5jeBp' : 1, '0JyJ4Nt68jBV0sJUErDlmx':1}
streams(pop_5, playlists)