{"action":"created","issue":{"url":"https://api.github.com/repos/dnouri/nolearn/issues/213","repository_url":"https://api.github.com/repos/dnouri/nolearn","labels_url":"https://api.github.com/repos/dnouri/nolearn/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/dnouri/nolearn/issues/213/comments","events_url":"https://api.github.com/repos/dnouri/nolearn/issues/213/events","html_url":"https://github.com/dnouri/nolearn/issues/213","id":133785171,"number":213,"title":"access weights of neural network. ","user":{"login":"great-thoughts","id":7269393,"avatar_url":"https://avatars.githubusercontent.com/u/7269393?v=3","gravatar_id":"","url":"https://api.github.com/users/great-thoughts","html_url":"https://github.com/great-thoughts","followers_url":"https://api.github.com/users/great-thoughts/followers","following_url":"https://api.github.com/users/great-thoughts/following{/other_user}","gists_url":"https://api.github.com/users/great-thoughts/gists{/gist_id}","starred_url":"https://api.github.com/users/great-thoughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/great-thoughts/subscriptions","organizations_url":"https://api.github.com/users/great-thoughts/orgs","repos_url":"https://api.github.com/users/great-thoughts/repos","events_url":"https://api.github.com/users/great-thoughts/events{/privacy}","received_events_url":"https://api.github.com/users/great-thoughts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T18:22:32Z","updated_at":"2016-02-15T21:47:30Z","closed_at":null,"body":"After training a neural network, in what variable is the weights of the neural network saved?\r\n\r\nI want to find what are the values of my weights. "},"comment":{"url":"https://api.github.com/repos/dnouri/nolearn/issues/comments/184408880","html_url":"https://github.com/dnouri/nolearn/issues/213#issuecomment-184408880","issue_url":"https://api.github.com/repos/dnouri/nolearn/issues/213","id":184408880,"user":{"login":"BenjaminBossan","id":6229650,"avatar_url":"https://avatars.githubusercontent.com/u/6229650?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminBossan","html_url":"https://github.com/BenjaminBossan","followers_url":"https://api.github.com/users/BenjaminBossan/followers","following_url":"https://api.github.com/users/BenjaminBossan/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminBossan/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminBossan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminBossan/subscriptions","organizations_url":"https://api.github.com/users/BenjaminBossan/orgs","repos_url":"https://api.github.com/users/BenjaminBossan/repos","events_url":"https://api.github.com/users/BenjaminBossan/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminBossan/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T21:47:30Z","updated_at":"2016-02-15T21:47:30Z","body":"Usually, the Theano shared values are stored in the Lasagne layers' `W` (weights) and `b` (biases) attributes. To get numpy arrays, you would do something like this:\r\n\r\n```\r\nweights = net.layers_['dense'].W.get_value()\r\n```\r\n\r\n(insert appropriate names)\r\n\r\nFor more details, you should consult the Lasagne docs."}}