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
no_of_timesteps = 32 | |
x = [] | |
y = [] | |
for note_ in new_music: | |
for i in range(0, len(note_) - no_of_timesteps, 1): | |
#preparing input and output sequences | |
input_ = note_[i:i + no_of_timesteps] | |
output = note_[i + no_of_timesteps] | |
x.append(input_) | |
y.append(output) | |
x=np.array(x) | |
y=np.array(y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment