vict0rsch / deep_learning

Deep Learning Resources and Tutorials using Keras and Lasagne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why you reshape the X into 3D shape

sherlockhoatszx opened this issue · comments

Hi, the code runs well, thanks.
I got one question that confuse me , why you reshape the X into 3 dimensions : X_train = np.reshape(X_train, (X_train.shape[0], X_train.shape[1], 1)) ?does these represent: nb_samples , timestep and features ?
Many thanks

yes, it's because the data is 1d : it's just a scalar value. See also : https://github.com/Vict0rSch/deep_learning/blob/master/recurrent.md