{"action":"closed","issue":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/54","labels_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/54/comments","events_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/54/events","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/issues/54","id":77454490,"number":54,"title":"Compatibility with GridSearchCV","user":{"login":"mblondel","id":233706,"avatar_url":"https://avatars.githubusercontent.com/u/233706?v=3","gravatar_id":"","url":"https://api.github.com/users/mblondel","html_url":"https://github.com/mblondel","followers_url":"https://api.github.com/users/mblondel/followers","following_url":"https://api.github.com/users/mblondel/following{/other_user}","gists_url":"https://api.github.com/users/mblondel/gists{/gist_id}","starred_url":"https://api.github.com/users/mblondel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mblondel/subscriptions","organizations_url":"https://api.github.com/users/mblondel/orgs","repos_url":"https://api.github.com/users/mblondel/repos","events_url":"https://api.github.com/users/mblondel/events{/privacy}","received_events_url":"https://api.github.com/users/mblondel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-18T01:42:32Z","updated_at":"2015-05-18T13:35:22Z","closed_at":"2015-05-18T13:35:22Z","body":"I think the layer parameters can't be tuned by GridSearchCV from scikit-learn. Possible solutions:\r\n\r\n- Support hierarchical parameters in GridSearchCV from scikit-learn (hard)\r\n- Ship your own modified GridSearchCV\r\n- Change your API\r\n\r\nOne idea would be to replace \r\n```python\r\nnn = Classifier(\r\n    layers=[\r\n        Layer(\"Rectifier\", units=100),\r\n        Layer(\"Linear\")],\r\n    learning_rate=0.02,\r\n    n_iter=10)\r\n```\r\nby\r\n```python\r\nnn = Classifier(\r\n    layers=[\"rectifier\", \"linear\"],\r\n    n_units=[100, \"default\"],\r\n    learning_rate=0.02,\r\n    n_iter=10)\r\n```\r\nbut I am not sure GridSearchCV supports array parameters either.\r\n\r\nCC @amueller @ogrisel"}}