{"action":"closed","issue":{"url":"https://api.github.com/repos/farizrahman4u/seq2seq/issues/57","repository_url":"https://api.github.com/repos/farizrahman4u/seq2seq","labels_url":"https://api.github.com/repos/farizrahman4u/seq2seq/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/farizrahman4u/seq2seq/issues/57/comments","events_url":"https://api.github.com/repos/farizrahman4u/seq2seq/issues/57/events","html_url":"https://github.com/farizrahman4u/seq2seq/issues/57","id":144411688,"number":57,"title":"AttentionSeq2seq Shape Mismatches","user":{"login":"babylonico","id":12550575,"avatar_url":"https://avatars.githubusercontent.com/u/12550575?v=3","gravatar_id":"","url":"https://api.github.com/users/babylonico","html_url":"https://github.com/babylonico","followers_url":"https://api.github.com/users/babylonico/followers","following_url":"https://api.github.com/users/babylonico/following{/other_user}","gists_url":"https://api.github.com/users/babylonico/gists{/gist_id}","starred_url":"https://api.github.com/users/babylonico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babylonico/subscriptions","organizations_url":"https://api.github.com/users/babylonico/orgs","repos_url":"https://api.github.com/users/babylonico/repos","events_url":"https://api.github.com/users/babylonico/events{/privacy}","received_events_url":"https://api.github.com/users/babylonico/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-03-29T22:51:23Z","updated_at":"2016-07-01T04:32:27Z","closed_at":"2016-07-01T04:32:27Z","body":"I have x_train.shape = (12097, 5, 1) and y_train.shape=(12097, 10, 1).\r\n\r\nI initialize a model:\r\nmodel = AttentionSeq2seq(input_dim=1, input_length=x_train.shape[1], hidden_dim=64, output_length=y_train.shape[1], output_dim=1)\r\nmodel.compile(loss='mse', optimizer='rmsprop')\r\n\r\nI try to fit: model.fit(x_train, y_train,nb_epoch=1,batch_size=16,verbose=1)\r\n\r\nAnd immediately I get the error:\r\nShape mismatch: x has 64 cols (and 16 rows) but y has 1 rows (and 64 cols)\r\n\r\nFor some reason the batch size isn't being applied to y samples. \r\n\r\nSimilar thing happens with Seq2seq model, where I specify input_batch_size = (16,x_train.shape[1],1), except the error comes at the end of the epoch, again having to do with the dimensionality of y.\r\n\r\nAre my data or model initialization wrong? Worked fine with SimpleSeq2seq"}}
{"actor":{"display_login":"farizrahman4u"}}