Closed alexohneander closed 7 years ago
Traceback (most recent call last): File "rbm_chords.py", line 116, in <module> song = song[:np.floor(song.shape[0]/num_timesteps)*num_timesteps] TypeError: slice indices must be integers or None or have an __index__ method
song = song[:int(np.floor(song.shape[0]/num_timesteps)*num_timesteps)] solved it.
song = song[:int(np.floor(song.shape[0]/num_timesteps)*num_timesteps)]
Or downgrade numpy.