{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4080","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4080/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4080/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4080/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/4080","id":54014926,"number":4080,"title":"GridSearchCV multiprocessing hangs","user":{"login":"elyase","id":1175888,"avatar_url":"https://avatars.githubusercontent.com/u/1175888?v=3","gravatar_id":"","url":"https://api.github.com/users/elyase","html_url":"https://github.com/elyase","followers_url":"https://api.github.com/users/elyase/followers","following_url":"https://api.github.com/users/elyase/following{/other_user}","gists_url":"https://api.github.com/users/elyase/gists{/gist_id}","starred_url":"https://api.github.com/users/elyase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyase/subscriptions","organizations_url":"https://api.github.com/users/elyase/orgs","repos_url":"https://api.github.com/users/elyase/repos","events_url":"https://api.github.com/users/elyase/events{/privacy}","received_events_url":"https://api.github.com/users/elyase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T02:14:59Z","updated_at":"2015-01-12T02:39:36Z","closed_at":null,"body":"Test code:\r\n\r\n```\r\nimport numpy as np\r\nfrom sklearn.ensemble import RandomForestRegressor\r\nfrom sklearn.grid_search import GridSearchCV\r\n\r\nX = np.random.rand(50, 2)\r\ny = np.random.rand(50)\r\n\r\ntuned_parameters = {'n_estimators': [10, 20]}\r\n\r\nrf = RandomForestRegressor(n_estimators=10, verbose=1)\r\nclf = GridSearchCV(rf, tuned_parameters, verbose=1, n_jobs=-1)\r\nclf.fit(X, y)\r\n```\r\n\r\nWhen I interrupt it this is the traceback:\r\nhttp://pastebin.com/xAhB60mr\r\n\r\nI have:\r\n* OSX: 10.10.1\r\n* python: 3.4.2 (conda environment)\r\n* sklearn: 0.15.2\r\n* numpy 1.9.1\r\n\r\nThe random forest runs ok with `n_jobs=-1`, the issue is with `GridSearhCV`."},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/69524814","html_url":"https://github.com/scikit-learn/scikit-learn/issues/4080#issuecomment-69524814","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4080","id":69524814,"user":{"login":"jnothman","id":78827,"avatar_url":"https://avatars.githubusercontent.com/u/78827?v=3","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T02:39:36Z","updated_at":"2015-01-12T02:39:36Z","body":"Please test at current master.\r\n\r\nI have no problem running this in my OSX 10.9 Py3 environment, but who knows which variable is the culprit."}}