{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/73999529","id":73999529,"diff_hunk":"@@ -89,26 +89,33 @@ def plot_matrices(cov, prec, title):\n gsc = GroupSparseCovarianceCV(verbose=2)\n gsc.fit(subject_time_series)\n \n-from sklearn import covariance\n-gl = covariance.GraphLassoCV(verbose=2)\n-gl.fit(np.concatenate(subject_time_series))\n-\n+from nilearn.connectome import ConnectivityMeasure\n+from sklearn.covariance import GraphLassoCV\n+gl_covariance_measure = ConnectivityMeasure(GraphLassoCV(verbose=2),\n+                                            kind='covariance')\n+gl_covariance = gl_covariance_measure.fit_transform(\n+    [np.concatenate(subject_time_series)])[0]\n+\n+gl_precision_measure = ConnectivityMeasure(GraphLassoCV(verbose=2),\n+                                           kind='precision')\n+gl_precision = gl_covariance_measure.fit_transform(\n+    [np.concatenate(subject_time_series)])[0]","path":"examples/03_connectivity/plot_multi_subject_connectome.py","position":18,"original_position":18,"commit_id":"2f6430a49accb43bf26eccae4ff9e41581bf9818","original_commit_id":"2f6430a49accb43bf26eccae4ff9e41581bf9818","user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"body":"This is also adding a lot of lines. I am a bit worried that it actually makes all this harder to explain / learn.","created_at":"2016-08-09T05:24:06Z","updated_at":"2016-08-09T05:24:06Z","html_url":"https://github.com/nilearn/nilearn/pull/1228#discussion_r73999529","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1228","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/73999529"},"html":{"href":"https://github.com/nilearn/nilearn/pull/1228#discussion_r73999529"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1228"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/1228","id":80525483,"html_url":"https://github.com/nilearn/nilearn/pull/1228","diff_url":"https://github.com/nilearn/nilearn/pull/1228.diff","patch_url":"https://github.com/nilearn/nilearn/pull/1228.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/1228","number":1228,"state":"open","locked":false,"title":"use ConnectivityMeasure for GraphLasso","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"body":"fixes #1213.\r\nFor the moment I am keeping direct fitting of sklearn GraphLasso in `plot_simulated_connectome` because of `alpha_` parameter use, and will do another PR for this example.","created_at":"2016-08-08T21:30:03Z","updated_at":"2016-08-09T05:24:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9c893e945d0375676e2458c9f7dedabd1457006","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1228/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/1228/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/1228/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/2f6430a49accb43bf26eccae4ff9e41581bf9818","head":{"label":"salma1601:replace_graphlasso","ref":"replace_graphlasso","sha":"2f6430a49accb43bf26eccae4ff9e41581bf9818","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"repo":{"id":18172102,"name":"nilearn","full_name":"salma1601/nilearn","owner":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salma1601/nilearn","description":"Machine learning for NeuroImaging in Python","fork":true,"url":"https://api.github.com/repos/salma1601/nilearn","forks_url":"https://api.github.com/repos/salma1601/nilearn/forks","keys_url":"https://api.github.com/repos/salma1601/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salma1601/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salma1601/nilearn/teams","hooks_url":"https://api.github.com/repos/salma1601/nilearn/hooks","issue_events_url":"https://api.github.com/repos/salma1601/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/salma1601/nilearn/events","assignees_url":"https://api.github.com/repos/salma1601/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/salma1601/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/salma1601/nilearn/tags","blobs_url":"https://api.github.com/repos/salma1601/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salma1601/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salma1601/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/salma1601/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salma1601/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/salma1601/nilearn/languages","stargazers_url":"https://api.github.com/repos/salma1601/nilearn/stargazers","contributors_url":"https://api.github.com/repos/salma1601/nilearn/contributors","subscribers_url":"https://api.github.com/repos/salma1601/nilearn/subscribers","subscription_url":"https://api.github.com/repos/salma1601/nilearn/subscription","commits_url":"https://api.github.com/repos/salma1601/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/salma1601/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/salma1601/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/salma1601/nilearn/issues/comments{/number}","contents_url":"https://api.github.com/repos/salma1601/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/salma1601/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salma1601/nilearn/merges","archive_url":"https://api.github.com/repos/salma1601/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salma1601/nilearn/downloads","issues_url":"https://api.github.com/repos/salma1601/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/salma1601/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/salma1601/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/salma1601/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salma1601/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/salma1601/nilearn/releases{/id}","deployments_url":"https://api.github.com/repos/salma1601/nilearn/deployments","created_at":"2014-03-27T10:26:53Z","updated_at":"2015-07-02T13:06:52Z","pushed_at":"2016-08-08T21:24:58Z","git_url":"git://github.com/salma1601/nilearn.git","ssh_url":"git@github.com:salma1601/nilearn.git","clone_url":"https://github.com/salma1601/nilearn.git","svn_url":"https://github.com/salma1601/nilearn","homepage":"http://nilearn.github.io","size":38206,"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":"tangent_salma"}},"base":{"label":"nilearn:master","ref":"master","sha":"fb2e3405306b5f91546289aa849dca43177d1fe0","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-08-02T07:37:37Z","pushed_at":"2016-08-08T21:30:03Z","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":13463,"stargazers_count":188,"watchers_count":188,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":139,"mirror_url":null,"open_issues_count":178,"forks":139,"open_issues":178,"watchers":188,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1228"},"html":{"href":"https://github.com/nilearn/nilearn/pull/1228"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/1228"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/1228/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1228/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/1228/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/2f6430a49accb43bf26eccae4ff9e41581bf9818"}}}}
{"actor":{"display_login":"GaelVaroquaux"}}