{"action":"opened","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/1261","labels_url":"https://api.github.com/repos/fchollet/keras/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/1261/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/1261/events","html_url":"https://github.com/fchollet/keras/issues/1261","id":122032280,"number":1261,"title":"LSTM always return 1 values","user":{"login":"vinhqdang","id":4891112,"avatar_url":"https://avatars.githubusercontent.com/u/4891112?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhqdang","html_url":"https://github.com/vinhqdang","followers_url":"https://api.github.com/users/vinhqdang/followers","following_url":"https://api.github.com/users/vinhqdang/following{/other_user}","gists_url":"https://api.github.com/users/vinhqdang/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhqdang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhqdang/subscriptions","organizations_url":"https://api.github.com/users/vinhqdang/orgs","repos_url":"https://api.github.com/users/vinhqdang/repos","events_url":"https://api.github.com/users/vinhqdang/events{/privacy}","received_events_url":"https://api.github.com/users/vinhqdang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T12:21:46Z","updated_at":"2015-12-14T12:21:46Z","closed_at":null,"body":"Hello all\r\n\r\nI am using LSTM (follow an example at https://github.com/fchollet/keras/blob/master/examples/imdb_bidirectional_lstm.py) to classify the text with 6 classes.\r\n\r\nMy code can be found at: \r\n\r\nhttp://pastebin.com/F6XjX6TP\r\n\r\nHowever, the results when I printed the values is always 1 (my classes ran from 0 to 5), and of course, it does not work.\r\n\r\nHow should I fix the issue?\r\n\r\nThanks a lot,\r\n\r\n"}}