Skip to content

Instantly share code, notes, and snippets.

@kumar-abhishek
Last active January 12, 2020 05:24
Show Gist options
  • Save kumar-abhishek/3e4b2b6a91fcc5f7b6df40f8dd74314a to your computer and use it in GitHub Desktop.
Save kumar-abhishek/3e4b2b6a91fcc5f7b6df40f8dd74314a to your computer and use it in GitHub Desktop.
Analyze Input
X_train_000 = pd.read_csv('chorale_000.csv')
print(X_train_000.head())
>>>
note0 note1 note2 note3
0 74 70 65 58
1 74 70 65 58
2 74 70 65 58
3 74 70 65 58
4 75 70 58 55
X_valid_229 = pd.read_csv('chorale_229.csv')
print(X_valid_229.head(5))
>>>
note0 note1 note2 note3
0 72 67 60 48
1 72 67 60 48
2 72 67 60 48
3 72 67 60 48
4 72 67 64 48
X_train_000 = X_train_000.to_numpy()
X_valid_229 = X_valid_229.to_numpy()
dataX=X_train_000[:-1] # input
dataY=X_train_000[1:] # output
print(dataX[0:5])
print(dataY[0:5])
>>>
[[74 70 65 58]
[74 70 65 58]
[74 70 65 58]
[74 70 65 58]
[75 70 58 55]]
[[74 70 65 58]
[74 70 65 58]
[74 70 65 58]
[75 70 58 55]
[75 70 58 55]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment