{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/44759348","id":44759348,"diff_hunk":"@@ -187,6 +188,20 @@ def test_tv_regression_3D_image_doesnt_crash():\n                      penalty=\"tv-l1\", is_classif=False, max_iter=10).fit(X, y)\n \n \n+def test_graph_net_classifier_score():\n+    iris = load_iris()\n+    X, y = iris.data, iris.target\n+    y = 2 * (y > 0) - 1\n+    X_, mask = to_niimgs(X, (2, 2, 2))\n+    gnc = SpaceNetClassifier(mask=mask, alphas=1. / .01 / X.shape[0],\n+                             l1_ratios=1., tol=1e-10,\n+                             penalty=\"graph-net\", loss='logistic',\n+                             standardize=False, verbose=0,\n+                             screening_percentile=100.).fit(X_, y)\n+    accuracy = gnc.score(X_, y)\n+    assert_less_equal(0, accuracy)","path":"nilearn/decoding/tests/test_space_net.py","position":25,"original_position":25,"commit_id":"d68fed85c502d501295eeabfa58a44beb4579af2","original_commit_id":"d68fed85c502d501295eeabfa58a44beb4579af2","user":{"login":"mrahim","id":8612476,"avatar_url":"https://avatars.githubusercontent.com/u/8612476?v=3","gravatar_id":"","url":"https://api.github.com/users/mrahim","html_url":"https://github.com/mrahim","followers_url":"https://api.github.com/users/mrahim/followers","following_url":"https://api.github.com/users/mrahim/following{/other_user}","gists_url":"https://api.github.com/users/mrahim/gists{/gist_id}","starred_url":"https://api.github.com/users/mrahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrahim/subscriptions","organizations_url":"https://api.github.com/users/mrahim/orgs","repos_url":"https://api.github.com/users/mrahim/repos","events_url":"https://api.github.com/users/mrahim/events{/privacy}","received_events_url":"https://api.github.com/users/mrahim/received_events","type":"User","site_admin":false},"body":"Do you think that `test_log_reg_vs_graph_net_two_classes_iris` adresses your comment ?","created_at":"2015-11-13T08:31:05Z","updated_at":"2015-11-13T08:31:05Z","html_url":"https://github.com/nilearn/nilearn/pull/834#discussion_r44759348","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/834","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/44759348"},"html":{"href":"https://github.com/nilearn/nilearn/pull/834#discussion_r44759348"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/834"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/834","id":50033260,"html_url":"https://github.com/nilearn/nilearn/pull/834","diff_url":"https://github.com/nilearn/nilearn/pull/834.diff","patch_url":"https://github.com/nilearn/nilearn/pull/834.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/834","number":834,"state":"open","locked":false,"title":"Spacenet classifier accuracy score","user":{"login":"mrahim","id":8612476,"avatar_url":"https://avatars.githubusercontent.com/u/8612476?v=3","gravatar_id":"","url":"https://api.github.com/users/mrahim","html_url":"https://github.com/mrahim","followers_url":"https://api.github.com/users/mrahim/followers","following_url":"https://api.github.com/users/mrahim/following{/other_user}","gists_url":"https://api.github.com/users/mrahim/gists{/gist_id}","starred_url":"https://api.github.com/users/mrahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrahim/subscriptions","organizations_url":"https://api.github.com/users/mrahim/orgs","repos_url":"https://api.github.com/users/mrahim/repos","events_url":"https://api.github.com/users/mrahim/events{/privacy}","received_events_url":"https://api.github.com/users/mrahim/received_events","type":"User","site_admin":false},"body":"Fix #833 + test","created_at":"2015-11-07T10:34:36Z","updated_at":"2015-11-13T08:31:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c808151931fde0b30b6db719a55004a20b926f1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/834/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/834/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/834/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/d68fed85c502d501295eeabfa58a44beb4579af2","head":{"label":"mrahim:spacenet_fix","ref":"spacenet_fix","sha":"d68fed85c502d501295eeabfa58a44beb4579af2","user":{"login":"mrahim","id":8612476,"avatar_url":"https://avatars.githubusercontent.com/u/8612476?v=3","gravatar_id":"","url":"https://api.github.com/users/mrahim","html_url":"https://github.com/mrahim","followers_url":"https://api.github.com/users/mrahim/followers","following_url":"https://api.github.com/users/mrahim/following{/other_user}","gists_url":"https://api.github.com/users/mrahim/gists{/gist_id}","starred_url":"https://api.github.com/users/mrahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrahim/subscriptions","organizations_url":"https://api.github.com/users/mrahim/orgs","repos_url":"https://api.github.com/users/mrahim/repos","events_url":"https://api.github.com/users/mrahim/events{/privacy}","received_events_url":"https://api.github.com/users/mrahim/received_events","type":"User","site_admin":false},"repo":{"id":28154548,"name":"nilearn","full_name":"mrahim/nilearn","owner":{"login":"mrahim","id":8612476,"avatar_url":"https://avatars.githubusercontent.com/u/8612476?v=3","gravatar_id":"","url":"https://api.github.com/users/mrahim","html_url":"https://github.com/mrahim","followers_url":"https://api.github.com/users/mrahim/followers","following_url":"https://api.github.com/users/mrahim/following{/other_user}","gists_url":"https://api.github.com/users/mrahim/gists{/gist_id}","starred_url":"https://api.github.com/users/mrahim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrahim/subscriptions","organizations_url":"https://api.github.com/users/mrahim/orgs","repos_url":"https://api.github.com/users/mrahim/repos","events_url":"https://api.github.com/users/mrahim/events{/privacy}","received_events_url":"https://api.github.com/users/mrahim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrahim/nilearn","description":"Machine learning for NeuroImaging in Python","fork":true,"url":"https://api.github.com/repos/mrahim/nilearn","forks_url":"https://api.github.com/repos/mrahim/nilearn/forks","keys_url":"https://api.github.com/repos/mrahim/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrahim/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrahim/nilearn/teams","hooks_url":"https://api.github.com/repos/mrahim/nilearn/hooks","issue_events_url":"https://api.github.com/repos/mrahim/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/mrahim/nilearn/events","assignees_url":"https://api.github.com/repos/mrahim/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/mrahim/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/mrahim/nilearn/tags","blobs_url":"https://api.github.com/repos/mrahim/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrahim/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrahim/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrahim/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrahim/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/mrahim/nilearn/languages","stargazers_url":"https://api.github.com/repos/mrahim/nilearn/stargazers","contributors_url":"https://api.github.com/repos/mrahim/nilearn/contributors","subscribers_url":"https://api.github.com/repos/mrahim/nilearn/subscribers","subscription_url":"https://api.github.com/repos/mrahim/nilearn/subscription","commits_url":"https://api.github.com/repos/mrahim/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrahim/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrahim/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrahim/nilearn/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrahim/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/mrahim/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrahim/nilearn/merges","archive_url":"https://api.github.com/repos/mrahim/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrahim/nilearn/downloads","issues_url":"https://api.github.com/repos/mrahim/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/mrahim/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/mrahim/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/mrahim/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrahim/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/mrahim/nilearn/releases{/id}","created_at":"2014-12-17T20:36:50Z","updated_at":"2015-05-07T12:02:39Z","pushed_at":"2015-11-13T07:56:23Z","git_url":"git://github.com/mrahim/nilearn.git","ssh_url":"git@github.com:mrahim/nilearn.git","clone_url":"https://github.com/mrahim/nilearn.git","svn_url":"https://github.com/mrahim/nilearn","homepage":"http://nilearn.github.io","size":8505,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"nilearn:master","ref":"master","sha":"db15e786f50fa567c6f1fd3c748336a5a5738b21","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}","created_at":"2011-01-09T19:02:23Z","updated_at":"2015-11-12T18:40:01Z","pushed_at":"2015-11-12T14:54:46Z","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":14961,"stargazers_count":120,"watchers_count":120,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":100,"forks":90,"open_issues":100,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/834"},"html":{"href":"https://github.com/nilearn/nilearn/pull/834"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/834"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/834/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/834/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/834/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/d68fed85c502d501295eeabfa58a44beb4579af2"}}}}