{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/287","labels_url":"https://api.github.com/repos/fchollet/keras/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/287/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/287/events","html_url":"https://github.com/fchollet/keras/issues/287","id":91545578,"number":287,"title":"pad_sequences always truncates the end of the sequence.","user":{"login":"wxs","id":326559,"avatar_url":"https://avatars.githubusercontent.com/u/326559?v=3","gravatar_id":"","url":"https://api.github.com/users/wxs","html_url":"https://github.com/wxs","followers_url":"https://api.github.com/users/wxs/followers","following_url":"https://api.github.com/users/wxs/following{/other_user}","gists_url":"https://api.github.com/users/wxs/gists{/gist_id}","starred_url":"https://api.github.com/users/wxs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxs/subscriptions","organizations_url":"https://api.github.com/users/wxs/orgs","repos_url":"https://api.github.com/users/wxs/repos","events_url":"https://api.github.com/users/wxs/events{/privacy}","received_events_url":"https://api.github.com/users/wxs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-28T02:56:53Z","updated_at":"2015-06-29T22:09:26Z","closed_at":"2015-06-29T22:09:26Z","body":"I believe it makes more sense when padding is set to \"pre\" that the beginning of the sequence is truncated when it's longer than maxlen. Right now as you reduce maxlen you cut padding characters off the beginning of the sequence until you hit the sequence length and then start cutting characters off the *end* of the sequence. I would think that this should at least be an option in `pad_sequences`. Thoughts?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/116861186","html_url":"https://github.com/fchollet/keras/issues/287#issuecomment-116861186","issue_url":"https://api.github.com/repos/fchollet/keras/issues/287","id":116861186,"user":{"login":"wxs","id":326559,"avatar_url":"https://avatars.githubusercontent.com/u/326559?v=3","gravatar_id":"","url":"https://api.github.com/users/wxs","html_url":"https://github.com/wxs","followers_url":"https://api.github.com/users/wxs/followers","following_url":"https://api.github.com/users/wxs/following{/other_user}","gists_url":"https://api.github.com/users/wxs/gists{/gist_id}","starred_url":"https://api.github.com/users/wxs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxs/subscriptions","organizations_url":"https://api.github.com/users/wxs/orgs","repos_url":"https://api.github.com/users/wxs/repos","events_url":"https://api.github.com/users/wxs/events{/privacy}","received_events_url":"https://api.github.com/users/wxs/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T22:09:26Z","updated_at":"2015-06-29T22:09:26Z","body":"Fixed, thanks."}}