{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/834","labels_url":"https://api.github.com/repos/fchollet/keras/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/834/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/834/events","html_url":"https://github.com/fchollet/keras/issues/834","id":111417332,"number":834,"title":"nb_samples, timesteps, input_dim Explanation","user":{"login":"KOHMA","id":9581117,"avatar_url":"https://avatars.githubusercontent.com/u/9581117?v=3","gravatar_id":"","url":"https://api.github.com/users/KOHMA","html_url":"https://github.com/KOHMA","followers_url":"https://api.github.com/users/KOHMA/followers","following_url":"https://api.github.com/users/KOHMA/following{/other_user}","gists_url":"https://api.github.com/users/KOHMA/gists{/gist_id}","starred_url":"https://api.github.com/users/KOHMA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KOHMA/subscriptions","organizations_url":"https://api.github.com/users/KOHMA/orgs","repos_url":"https://api.github.com/users/KOHMA/repos","events_url":"https://api.github.com/users/KOHMA/events{/privacy}","received_events_url":"https://api.github.com/users/KOHMA/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T14:59:40Z","updated_at":"2015-10-19T14:40:49Z","closed_at":"2015-10-14T18:31:49Z","body":"Hey, I am currently working on a LSTM Music Composer.\r\nLooking at the required Input Shape of LSTM the Documentation states as follows: Input shape: 3D tensor with shape: (nb_samples, timesteps, input_dim).\r\nI was wondering what nb_samples, timesteps, and input_dim actually mean exactly. I know it must be obvious, but I couldn't figure out what nb_samples is exactly referring to.\r\n\r\nSo I am going to feed my LSTM RNN with a piano roll like representation of a Midi File. So it's a matrix with ones and zeros, 1 meaning note_on, 0 meaning note_off. So what I have as piano roll is a matrix with each row representing one note (= input_dim?) and the columns representing one Midi tick (timing in midi files) (= timesteps?). This tells the Net which Note is on at what point in time. But I can't figure what the third dimension should be in my case.\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/149235512","html_url":"https://github.com/fchollet/keras/issues/834#issuecomment-149235512","issue_url":"https://api.github.com/repos/fchollet/keras/issues/834","id":149235512,"user":{"login":"KOHMA","id":9581117,"avatar_url":"https://avatars.githubusercontent.com/u/9581117?v=3","gravatar_id":"","url":"https://api.github.com/users/KOHMA","html_url":"https://github.com/KOHMA","followers_url":"https://api.github.com/users/KOHMA/followers","following_url":"https://api.github.com/users/KOHMA/following{/other_user}","gists_url":"https://api.github.com/users/KOHMA/gists{/gist_id}","starred_url":"https://api.github.com/users/KOHMA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KOHMA/subscriptions","organizations_url":"https://api.github.com/users/KOHMA/orgs","repos_url":"https://api.github.com/users/KOHMA/repos","events_url":"https://api.github.com/users/KOHMA/events{/privacy}","received_events_url":"https://api.github.com/users/KOHMA/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T14:40:49Z","updated_at":"2015-10-19T14:40:49Z","body":"Thanks for giving proof to my assumption :)"}}