{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/71111782","id":71111782,"diff_hunk":"@@ -1,24 +1,46 @@\n from distutils.version import LooseVersion\n import sklearn\n \n+\n if (LooseVersion(sklearn.__version__) < LooseVersion('0.15') or\n       sklearn.__version__ == '0.15-git'):\n     from .sklearn_f_regression_nosparse import (\n         f_regression_nosparse as f_regression)\n else:\n     from sklearn.feature_selection import f_regression\n \n+\n+try:\n+    # scikit-learn >= 0.16\n+    from sklearn.cross_validation import check_cv\n+except:","path":"nilearn/_utils/fixes/__init__.py","position":16,"original_position":16,"commit_id":"1c622965b42e91070a3ad3a707e407e3cc8ee5a3","original_commit_id":"1c622965b42e91070a3ad3a707e407e3cc8ee5a3","user":{"login":"KamalakerDadi","id":11410385,"avatar_url":"https://avatars.githubusercontent.com/u/11410385?v=3","gravatar_id":"","url":"https://api.github.com/users/KamalakerDadi","html_url":"https://github.com/KamalakerDadi","followers_url":"https://api.github.com/users/KamalakerDadi/followers","following_url":"https://api.github.com/users/KamalakerDadi/following{/other_user}","gists_url":"https://api.github.com/users/KamalakerDadi/gists{/gist_id}","starred_url":"https://api.github.com/users/KamalakerDadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KamalakerDadi/subscriptions","organizations_url":"https://api.github.com/users/KamalakerDadi/orgs","repos_url":"https://api.github.com/users/KamalakerDadi/repos","events_url":"https://api.github.com/users/KamalakerDadi/events{/privacy}","received_events_url":"https://api.github.com/users/KamalakerDadi/received_events","type":"User","site_admin":false},"body":"Any reason why you are raising ```ImportError``` like you have did for others ?","created_at":"2016-07-18T08:15:35Z","updated_at":"2016-07-18T08:15:35Z","html_url":"https://github.com/nilearn/nilearn/pull/1148#discussion_r71111782","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1148","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/71111782"},"html":{"href":"https://github.com/nilearn/nilearn/pull/1148#discussion_r71111782"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1148"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/1148","id":74950958,"html_url":"https://github.com/nilearn/nilearn/pull/1148","diff_url":"https://github.com/nilearn/nilearn/pull/1148.diff","patch_url":"https://github.com/nilearn/nilearn/pull/1148.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/1148","number":1148,"state":"open","locked":false,"title":"[MRG] Scikit-learn backports: Checking lenght of inputs","user":{"login":"ahoyosid","id":6594763,"avatar_url":"https://avatars.githubusercontent.com/u/6594763?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoyosid","html_url":"https://github.com/ahoyosid","followers_url":"https://api.github.com/users/ahoyosid/followers","following_url":"https://api.github.com/users/ahoyosid/following{/other_user}","gists_url":"https://api.github.com/users/ahoyosid/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoyosid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoyosid/subscriptions","organizations_url":"https://api.github.com/users/ahoyosid/orgs","repos_url":"https://api.github.com/users/ahoyosid/repos","events_url":"https://api.github.com/users/ahoyosid/events{/privacy}","received_events_url":"https://api.github.com/users/ahoyosid/received_events","type":"User","site_admin":false},"body":"The aim of this PR is to add some scikit-learn backports used on  #698,  splitting in two the PR to help the reviewers. It also address the issue #1134, checking the consistency of length between X and y.\r\n\r\n\r\n```python\r\n# Remove one sample from y_train\r\ny_train = y_train[:-1]\r\n\r\ndecoder = SpaceNetClassifier(memory=\"nilearn_cache\", penalty='graph-net',\r\n                             screening_percentile=100)\r\ndecoder.fit(X_train, y_train)\r\n\r\ny_pred = decoder.predict(X_test)\r\naccuracy = (y_pred == y_test).mean() * 100.\r\nprint(\"Graph-net classification accuracy : %g%%\" % accuracy)\r\n```\r\n\r\nNow it raises the error:\r\n\r\n```python\r\nValueError: Found arrays with inconsistent numbers of samples: [125 126]\r\n```","created_at":"2016-06-23T13:04:06Z","updated_at":"2016-07-18T08:15:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ff41c0a23e536fed44be0e522c70c0daa1d5d83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1148/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1148/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/1148/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/1c622965b42e91070a3ad3a707e407e3cc8ee5a3","head":{"label":"ahoyosid:check_inputs","ref":"check_inputs","sha":"1c622965b42e91070a3ad3a707e407e3cc8ee5a3","user":{"login":"ahoyosid","id":6594763,"avatar_url":"https://avatars.githubusercontent.com/u/6594763?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoyosid","html_url":"https://github.com/ahoyosid","followers_url":"https://api.github.com/users/ahoyosid/followers","following_url":"https://api.github.com/users/ahoyosid/following{/other_user}","gists_url":"https://api.github.com/users/ahoyosid/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoyosid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoyosid/subscriptions","organizations_url":"https://api.github.com/users/ahoyosid/orgs","repos_url":"https://api.github.com/users/ahoyosid/repos","events_url":"https://api.github.com/users/ahoyosid/events{/privacy}","received_events_url":"https://api.github.com/users/ahoyosid/received_events","type":"User","site_admin":false},"repo":{"id":39217784,"name":"nilearn","full_name":"ahoyosid/nilearn","owner":{"login":"ahoyosid","id":6594763,"avatar_url":"https://avatars.githubusercontent.com/u/6594763?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoyosid","html_url":"https://github.com/ahoyosid","followers_url":"https://api.github.com/users/ahoyosid/followers","following_url":"https://api.github.com/users/ahoyosid/following{/other_user}","gists_url":"https://api.github.com/users/ahoyosid/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoyosid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoyosid/subscriptions","organizations_url":"https://api.github.com/users/ahoyosid/orgs","repos_url":"https://api.github.com/users/ahoyosid/repos","events_url":"https://api.github.com/users/ahoyosid/events{/privacy}","received_events_url":"https://api.github.com/users/ahoyosid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahoyosid/nilearn","description":"Machine learning for NeuroImaging in Python","fork":true,"url":"https://api.github.com/repos/ahoyosid/nilearn","forks_url":"https://api.github.com/repos/ahoyosid/nilearn/forks","keys_url":"https://api.github.com/repos/ahoyosid/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahoyosid/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahoyosid/nilearn/teams","hooks_url":"https://api.github.com/repos/ahoyosid/nilearn/hooks","issue_events_url":"https://api.github.com/repos/ahoyosid/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/ahoyosid/nilearn/events","assignees_url":"https://api.github.com/repos/ahoyosid/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/ahoyosid/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/ahoyosid/nilearn/tags","blobs_url":"https://api.github.com/repos/ahoyosid/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahoyosid/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahoyosid/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahoyosid/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahoyosid/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/ahoyosid/nilearn/languages","stargazers_url":"https://api.github.com/repos/ahoyosid/nilearn/stargazers","contributors_url":"https://api.github.com/repos/ahoyosid/nilearn/contributors","subscribers_url":"https://api.github.com/repos/ahoyosid/nilearn/subscribers","subscription_url":"https://api.github.com/repos/ahoyosid/nilearn/subscription","commits_url":"https://api.github.com/repos/ahoyosid/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahoyosid/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahoyosid/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahoyosid/nilearn/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahoyosid/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/ahoyosid/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahoyosid/nilearn/merges","archive_url":"https://api.github.com/repos/ahoyosid/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahoyosid/nilearn/downloads","issues_url":"https://api.github.com/repos/ahoyosid/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/ahoyosid/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/ahoyosid/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/ahoyosid/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahoyosid/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/ahoyosid/nilearn/releases{/id}","deployments_url":"https://api.github.com/repos/ahoyosid/nilearn/deployments","created_at":"2015-07-16T20:04:09Z","updated_at":"2016-06-08T11:03:05Z","pushed_at":"2016-07-15T23:16:18Z","git_url":"git://github.com/ahoyosid/nilearn.git","ssh_url":"git@github.com:ahoyosid/nilearn.git","clone_url":"https://github.com/ahoyosid/nilearn.git","svn_url":"https://github.com/ahoyosid/nilearn","homepage":"http://nilearn.github.io","size":10105,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"nilearn:master","ref":"master","sha":"07a07848f188a884b8a6c1203873bd054c3eeb40","user":{"login":"nilearn","id":4646912,"avatar_url":"https://avatars.githubusercontent.com/u/4646912?v=3","gravatar_id":"","url":"https://api.github.com/users/nilearn","html_url":"https://github.com/nilearn","followers_url":"https://api.github.com/users/nilearn/followers","following_url":"https://api.github.com/users/nilearn/following{/other_user}","gists_url":"https://api.github.com/users/nilearn/gists{/gist_id}","starred_url":"https://api.github.com/users/nilearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilearn/subscriptions","organizations_url":"https://api.github.com/users/nilearn/orgs","repos_url":"https://api.github.com/users/nilearn/repos","events_url":"https://api.github.com/users/nilearn/events{/privacy}","received_events_url":"https://api.github.com/users/nilearn/received_events","type":"Organization","site_admin":false},"repo":{"id":1235740,"name":"nilearn","full_name":"nilearn/nilearn","owner":{"login":"nilearn","id":4646912,"avatar_url":"https://avatars.githubusercontent.com/u/4646912?v=3","gravatar_id":"","url":"https://api.github.com/users/nilearn","html_url":"https://github.com/nilearn","followers_url":"https://api.github.com/users/nilearn/followers","following_url":"https://api.github.com/users/nilearn/following{/other_user}","gists_url":"https://api.github.com/users/nilearn/gists{/gist_id}","starred_url":"https://api.github.com/users/nilearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilearn/subscriptions","organizations_url":"https://api.github.com/users/nilearn/orgs","repos_url":"https://api.github.com/users/nilearn/repos","events_url":"https://api.github.com/users/nilearn/events{/privacy}","received_events_url":"https://api.github.com/users/nilearn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilearn/nilearn","description":"Machine learning for NeuroImaging in Python","fork":false,"url":"https://api.github.com/repos/nilearn/nilearn","forks_url":"https://api.github.com/repos/nilearn/nilearn/forks","keys_url":"https://api.github.com/repos/nilearn/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilearn/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilearn/nilearn/teams","hooks_url":"https://api.github.com/repos/nilearn/nilearn/hooks","issue_events_url":"https://api.github.com/repos/nilearn/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/nilearn/nilearn/events","assignees_url":"https://api.github.com/repos/nilearn/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/nilearn/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/nilearn/nilearn/tags","blobs_url":"https://api.github.com/repos/nilearn/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilearn/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilearn/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilearn/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/nilearn/nilearn/languages","stargazers_url":"https://api.github.com/repos/nilearn/nilearn/stargazers","contributors_url":"https://api.github.com/repos/nilearn/nilearn/contributors","subscribers_url":"https://api.github.com/repos/nilearn/nilearn/subscribers","subscription_url":"https://api.github.com/repos/nilearn/nilearn/subscription","commits_url":"https://api.github.com/repos/nilearn/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilearn/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilearn/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilearn/nilearn/issues/comments{/number}","contents_url":"https://api.github.com/repos/nilearn/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/nilearn/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilearn/nilearn/merges","archive_url":"https://api.github.com/repos/nilearn/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilearn/nilearn/downloads","issues_url":"https://api.github.com/repos/nilearn/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/nilearn/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/nilearn/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/nilearn/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilearn/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/nilearn/nilearn/releases{/id}","deployments_url":"https://api.github.com/repos/nilearn/nilearn/deployments","created_at":"2011-01-09T19:02:23Z","updated_at":"2016-07-17T01:37:18Z","pushed_at":"2016-07-17T20:50:20Z","git_url":"git://github.com/nilearn/nilearn.git","ssh_url":"git@github.com:nilearn/nilearn.git","clone_url":"https://github.com/nilearn/nilearn.git","svn_url":"https://github.com/nilearn/nilearn","homepage":"http://nilearn.github.io","size":13364,"stargazers_count":183,"watchers_count":183,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":163,"forks":136,"open_issues":163,"watchers":183,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1148"},"html":{"href":"https://github.com/nilearn/nilearn/pull/1148"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/1148"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/1148/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1148/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1148/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/1c622965b42e91070a3ad3a707e407e3cc8ee5a3"}}}}
{"actor":{"display_login":"KamalakerDadi"}}