{"action":"closed","issue":{"url":"https://api.github.com/repos/lmjohns3/theanets/issues/82","labels_url":"https://api.github.com/repos/lmjohns3/theanets/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/lmjohns3/theanets/issues/82/comments","events_url":"https://api.github.com/repos/lmjohns3/theanets/issues/82/events","html_url":"https://github.com/lmjohns3/theanets/issues/82","id":90793874,"number":82,"title":"specifying layers -- output layer ","user":{"login":"MagicYoung","id":1646669,"avatar_url":"https://avatars.githubusercontent.com/u/1646669?v=3","gravatar_id":"","url":"https://api.github.com/users/MagicYoung","html_url":"https://github.com/MagicYoung","followers_url":"https://api.github.com/users/MagicYoung/followers","following_url":"https://api.github.com/users/MagicYoung/following{/other_user}","gists_url":"https://api.github.com/users/MagicYoung/gists{/gist_id}","starred_url":"https://api.github.com/users/MagicYoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MagicYoung/subscriptions","organizations_url":"https://api.github.com/users/MagicYoung/orgs","repos_url":"https://api.github.com/users/MagicYoung/repos","events_url":"https://api.github.com/users/MagicYoung/events{/privacy}","received_events_url":"https://api.github.com/users/MagicYoung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T22:28:05Z","updated_at":"2015-07-05T01:58:02Z","closed_at":"2015-07-05T01:58:02Z","body":"I found a bug in your original code. From the wiki, it shows \"the output layer must be given as an integer, which specifies the number of output units in the network\". However, in your example folder, the output layer is defined as a tuple, like (51, 'softmax') rather than integer. Therefore, I always get the error:\" unsupported operand type(s) for +: 'int' and 'tuple' \".\r\n\r\nAs your suggestion, I should use \r\n\r\nexp = theanets.Experiment(theanets.Classifier, layers=(30, 60, 30), output_activation='linear')\r\n\r\nright?"}}