{"action":"created","issue":{"url":"https://api.github.com/repos/bartvm/blocks/issues/334","labels_url":"https://api.github.com/repos/bartvm/blocks/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/bartvm/blocks/issues/334/comments","events_url":"https://api.github.com/repos/bartvm/blocks/issues/334/events","html_url":"https://github.com/bartvm/blocks/issues/334","id":58604365,"number":334,"title":"mlp has no attribute 'get_objective'","user":{"login":"fvisin","id":4639261,"avatar_url":"https://avatars.githubusercontent.com/u/4639261?v=3","gravatar_id":"","url":"https://api.github.com/users/fvisin","html_url":"https://github.com/fvisin","followers_url":"https://api.github.com/users/fvisin/followers","following_url":"https://api.github.com/users/fvisin/following{/other_user}","gists_url":"https://api.github.com/users/fvisin/gists{/gist_id}","starred_url":"https://api.github.com/users/fvisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvisin/subscriptions","organizations_url":"https://api.github.com/users/fvisin/orgs","repos_url":"https://api.github.com/users/fvisin/repos","events_url":"https://api.github.com/users/fvisin/events{/privacy}","received_events_url":"https://api.github.com/users/fvisin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-23T15:50:45Z","updated_at":"2015-02-23T16:06:13Z","closed_at":null,"body":"Following the [first tutorial](http://blocks.readthedocs.org/en/latest/tutorial.html#the-task) I get the following error when I run the model.\r\nApparently the mlp object doesn't have the get_objective() method implemented.\r\nI did not dig very much into it, let me know if the error is straightforward for you to understand, otherwise I will look into the code and see what I can find.\r\n\r\n```\r\nmain_loop.run()\r\n  File \"/home/francesco/exp/blocks/blocks/main_loop.py\", line 137, in run\r\n    if not self._model.get_objective() == self.algorithm.cost:\r\nAttributeError: 'TensorVariable' object has no attribute 'get_objective'\r\n```"},"comment":{"url":"https://api.github.com/repos/bartvm/blocks/issues/comments/75572064","html_url":"https://github.com/bartvm/blocks/issues/334#issuecomment-75572064","issue_url":"https://api.github.com/repos/bartvm/blocks/issues/334","id":75572064,"user":{"login":"bartvm","id":2299595,"avatar_url":"https://avatars.githubusercontent.com/u/2299595?v=3","gravatar_id":"","url":"https://api.github.com/users/bartvm","html_url":"https://github.com/bartvm","followers_url":"https://api.github.com/users/bartvm/followers","following_url":"https://api.github.com/users/bartvm/following{/other_user}","gists_url":"https://api.github.com/users/bartvm/gists{/gist_id}","starred_url":"https://api.github.com/users/bartvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartvm/subscriptions","organizations_url":"https://api.github.com/users/bartvm/orgs","repos_url":"https://api.github.com/users/bartvm/repos","events_url":"https://api.github.com/users/bartvm/events{/privacy}","received_events_url":"https://api.github.com/users/bartvm/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T16:06:13Z","updated_at":"2015-02-23T16:06:13Z","body":"We should probably call the run method without the Printing extension as a\nhidden doctest to make sure that we don't break the tutorial again.\nOn Feb 23, 2015 11:01 AM, \"Dmitry Bogdanov\" <notifications@github.com>\nwrote:\n\n> I changed my mind: this tutorial does not need a model at all.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/bartvm/blocks/issues/334#issuecomment-75571003>.\n>\n"}}