{"action":"created","issue":{"url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/1","labels_url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/1/comments","events_url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/1/events","html_url":"https://github.com/blakeMilner/DeepQLearning/issues/1","id":54843538,"number":1,"title":"Size mismatch when changing temporal window","user":{"login":"c0d3rman","id":5343762,"avatar_url":"https://avatars.githubusercontent.com/u/5343762?v=3","gravatar_id":"","url":"https://api.github.com/users/c0d3rman","html_url":"https://github.com/c0d3rman","followers_url":"https://api.github.com/users/c0d3rman/followers","following_url":"https://api.github.com/users/c0d3rman/following{/other_user}","gists_url":"https://api.github.com/users/c0d3rman/gists{/gist_id}","starred_url":"https://api.github.com/users/c0d3rman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0d3rman/subscriptions","organizations_url":"https://api.github.com/users/c0d3rman/orgs","repos_url":"https://api.github.com/users/c0d3rman/repos","events_url":"https://api.github.com/users/c0d3rman/events{/privacy}","received_events_url":"https://api.github.com/users/c0d3rman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-20T04:49:00Z","updated_at":"2015-01-21T22:22:05Z","closed_at":null,"body":"When I try to change Brain.temporal_window, I get this error:\r\n\r\n    /usr/local/bin/luajit: /usr/local/share/lua/5.1/nn/Linear.lua:37: size mismatch\r\n    stack traceback:\r\n        [C]: in function 'addmv'\r\n        /usr/local/share/lua/5.1/nn/Linear.lua:37: in function 'updateOutput'\r\n        /usr/local/share/lua/5.1/nn/Sequential.lua:25: in function 'forward'\r\n        ./deepqlearn.lua:195: in function 'policy'\r\n        ./deepqlearn.lua:349: in function 'backward'\r\n        example.lua:40: in main chunk\r\n        [C]: in function 'dofile'\r\n        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk\r\n        [C]: at 0x0106c18100\r\n\r\nIt's coming from Brain.policy, where it feeds `tensor_state` into the network without verifying its size.\r\nThe state is in turn coming from `Brain.backward`, specifically:\r\n\r\n    local best_action = Brain.policy(e.state1);\r\n\r\nHelp?"},"comment":{"url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/comments/70933902","html_url":"https://github.com/blakeMilner/DeepQLearning/issues/1#issuecomment-70933902","issue_url":"https://api.github.com/repos/blakeMilner/DeepQLearning/issues/1","id":70933902,"user":{"login":"blakeMilner","id":2810289,"avatar_url":"https://avatars.githubusercontent.com/u/2810289?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeMilner","html_url":"https://github.com/blakeMilner","followers_url":"https://api.github.com/users/blakeMilner/followers","following_url":"https://api.github.com/users/blakeMilner/following{/other_user}","gists_url":"https://api.github.com/users/blakeMilner/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeMilner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeMilner/subscriptions","organizations_url":"https://api.github.com/users/blakeMilner/orgs","repos_url":"https://api.github.com/users/blakeMilner/repos","events_url":"https://api.github.com/users/blakeMilner/events{/privacy}","received_events_url":"https://api.github.com/users/blakeMilner/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T22:22:05Z","updated_at":"2015-01-21T22:22:05Z","body":"I understand, the code needs a bit of housekeeping ; )"}}