{"action":"created","issue":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/68","labels_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/68/comments","events_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/68/events","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/issues/68","id":85032679,"number":68,"title":"Pooling doesn't work","user":{"login":"TyxTyxyc","id":12004718,"avatar_url":"https://avatars.githubusercontent.com/u/12004718?v=3","gravatar_id":"","url":"https://api.github.com/users/TyxTyxyc","html_url":"https://github.com/TyxTyxyc","followers_url":"https://api.github.com/users/TyxTyxyc/followers","following_url":"https://api.github.com/users/TyxTyxyc/following{/other_user}","gists_url":"https://api.github.com/users/TyxTyxyc/gists{/gist_id}","starred_url":"https://api.github.com/users/TyxTyxyc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TyxTyxyc/subscriptions","organizations_url":"https://api.github.com/users/TyxTyxyc/orgs","repos_url":"https://api.github.com/users/TyxTyxyc/repos","events_url":"https://api.github.com/users/TyxTyxyc/events{/privacy}","received_events_url":"https://api.github.com/users/TyxTyxyc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/milestones/3","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/milestones/0.3","labels_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/milestones/3/labels","id":1127126,"number":3,"title":"0.3","description":null,"creator":{"login":"alexjc","id":445208,"avatar_url":"https://avatars.githubusercontent.com/u/445208?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjc","html_url":"https://github.com/alexjc","followers_url":"https://api.github.com/users/alexjc/followers","following_url":"https://api.github.com/users/alexjc/following{/other_user}","gists_url":"https://api.github.com/users/alexjc/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjc/subscriptions","organizations_url":"https://api.github.com/users/alexjc/orgs","repos_url":"https://api.github.com/users/alexjc/repos","events_url":"https://api.github.com/users/alexjc/events{/privacy}","received_events_url":"https://api.github.com/users/alexjc/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-05-23T20:43:25Z","updated_at":"2015-06-04T11:00:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-06-04T10:36:16Z","updated_at":"2015-06-04T12:15:16Z","closed_at":null,"body":"Hello again!\r\n\r\nI've encountered another problem with convolutional layers. When I'm trying to set `pool_shape` parameter for `Convolution`, I get this error.\r\nMight be a problem with Theano, according to comments in `theano/tensor/nnet/conv.py` in `ConvOp.grad`: something about bug in computations using that method.\r\n\r\nSome code: https://github.com/TyxTyxyc/playground/blob/master/sknn_pooling_bug.py\r\nAnd traceback:\r\n```\r\nInitializing neural network with 3 layers, 64 inputs and 10 outputs.\r\n  - Convl: Rectifier  Output: (3, 3)     Channels: 8\r\n  - Dense: Rectifier  Units:  128 \r\n  - Dense: Softmax    Units:  10  \r\n\r\nTraceback (most recent call last):\r\n  File \"/home/tyxtyx2/work/poker-vision/bugs.py\", line 46, in <module>\r\n    net.fit(X_train, y_train)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/mlp.py\", line 480, in fit\r\n    return super(Classifier, self)._fit(X, yp, test=y)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/mlp.py\", line 344, in _fit\r\n    return self._train(*data, **extra)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/mlp.py\", line 362, in _train\r\n    self._initialize(X, y)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/mlp.py\", line 296, in _initialize\r\n    self.trainer.setup(self.mlp, self.ds)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/pylearn2/training_algorithms/sgd.py\", line 330, in setup\r\n    ** fixed_var_descr.fixed_vars)\r\n  File \"/usr/lib64/python2.7/site-packages/sknn/pylearn2/costs/cost.py\", line 162, in get_gradients\r\n    grads = T.grad(cost, params, disconnected_inputs='ignore')\r\n  File \"/usr/lib64/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/gradient.py\", line 545, in grad\r\n    grad_dict, wrt, cost_name)\r\n  File \"/usr/lib64/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/gradient.py\", line 1283, in _populate_grad_dict\r\n    rval = [access_grad_cache(elem) for elem in wrt]\r\n  File \"/usr/lib64/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/gradient.py\", line 1241, in access_grad_cache\r\n    term = access_term_cache(node)[idx]\r\n  File \"/usr/lib64/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/gradient.py\", line 1089, in access_term_cache\r\n    input_grads = node.op.grad(inputs, new_output_grads)\r\n  File \"/usr/lib64/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/tensor/nnet/conv.py\", line 850, in grad\r\n    raise Exception(\"ConvOp.grad when dx!=1 or dy!=1 we must have all \"\r\nException: ConvOp.grad when dx!=1 or dy!=1 we must have all the optional shape information\r\n\r\nProcess finished with exit code 1\r\n```\r\nStill investigating source code (slowly, in fact, due to lack of expirience), might provide some additional info later."},"comment":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/comments/108866669","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/issues/68#issuecomment-108866669","issue_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/68","id":108866669,"user":{"login":"alexjc","id":445208,"avatar_url":"https://avatars.githubusercontent.com/u/445208?v=3","gravatar_id":"","url":"https://api.github.com/users/alexjc","html_url":"https://github.com/alexjc","followers_url":"https://api.github.com/users/alexjc/followers","following_url":"https://api.github.com/users/alexjc/following{/other_user}","gists_url":"https://api.github.com/users/alexjc/gists{/gist_id}","starred_url":"https://api.github.com/users/alexjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexjc/subscriptions","organizations_url":"https://api.github.com/users/alexjc/orgs","repos_url":"https://api.github.com/users/alexjc/repos","events_url":"https://api.github.com/users/alexjc/events{/privacy}","received_events_url":"https://api.github.com/users/alexjc/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T12:15:16Z","updated_at":"2015-06-04T12:15:16Z","body":"OK, thanks for the update! Try a `(3,3)` shape or the same as the test?"}}