{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/856","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/856/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/856/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/856","id":116278812,"number":856,"title":"Request to support many-to-one scenario for LSTM","user":{"login":"wiku","id":1281748,"avatar_url":"https://avatars.githubusercontent.com/u/1281748?v=3","gravatar_id":"","url":"https://api.github.com/users/wiku","html_url":"https://github.com/wiku","followers_url":"https://api.github.com/users/wiku/followers","following_url":"https://api.github.com/users/wiku/following{/other_user}","gists_url":"https://api.github.com/users/wiku/gists{/gist_id}","starred_url":"https://api.github.com/users/wiku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiku/subscriptions","organizations_url":"https://api.github.com/users/wiku/orgs","repos_url":"https://api.github.com/users/wiku/repos","events_url":"https://api.github.com/users/wiku/events{/privacy}","received_events_url":"https://api.github.com/users/wiku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"AlexDBlack","id":2360237,"avatar_url":"https://avatars.githubusercontent.com/u/2360237?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-11T07:06:03Z","updated_at":"2015-12-14T04:38:38Z","closed_at":"2015-12-14T03:40:18Z","body":"Hi, as discussed with @AlexDBlack, currently LSTM only supports many-to-many use case, which means a label has to be provided for each sample in the input sequence and the output values are also predicted for each and every time step (both features and labels have the same sequence length). So if I just want to classify the whole sequence it doesn't train very well. Although there are ways to achieve many-to-one with the current implementation (either by using zero output values or adding additional labels for classification) this is still quite troublesome, and probably also has a negative impact on the training performance. If this is not a big problem for you, please consider adding such functionality in a future release. \r\n\r\n![image](https://cloud.githubusercontent.com/assets/2360237/11089982/59f72430-88c2-11e5-9393-9d453ecead65.png)\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/164340911","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/856#issuecomment-164340911","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/856","id":164340911,"user":{"login":"wiku","id":1281748,"avatar_url":"https://avatars.githubusercontent.com/u/1281748?v=3","gravatar_id":"","url":"https://api.github.com/users/wiku","html_url":"https://github.com/wiku","followers_url":"https://api.github.com/users/wiku/followers","following_url":"https://api.github.com/users/wiku/following{/other_user}","gists_url":"https://api.github.com/users/wiku/gists{/gist_id}","starred_url":"https://api.github.com/users/wiku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiku/subscriptions","organizations_url":"https://api.github.com/users/wiku/orgs","repos_url":"https://api.github.com/users/wiku/repos","events_url":"https://api.github.com/users/wiku/events{/privacy}","received_events_url":"https://api.github.com/users/wiku/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T04:38:38Z","updated_at":"2015-12-14T04:38:38Z","body":"Great, I was waiting for it! Big thanks!"}}