Skip to content

Commit

Permalink
Dimensionality Fix in extract_features
Browse files Browse the repository at this point in the history
  • Loading branch information
aaqibsaeed committed Sep 20, 2017
1 parent cefc2e7 commit 62e0b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Urban Sound Classification using RNN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
" mfcc = librosa.feature.mfcc(y=signal, sr=s, n_mfcc = bands).T.flatten()[:, np.newaxis].T\n",
" mfccs.append(mfcc)\n",
" labels.append(label) \n",
" features = np.asarray(mfccs).reshape(len(mfccs),bands,frames)\n",
" features = np.asarray(mfccs).reshape(len(mfccs),frames,bands)\n",
" return np.array(features), np.array(labels,dtype = np.int)\n",
"\n",
"def one_hot_encode(labels):\n",
Expand Down

0 comments on commit 62e0b98

Please sign in to comment.