{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/34775187","id":34775187,"diff_hunk":"@@ -0,0 +1,107 @@\n+\"\"\"\n+Comparing different connectivity measures\n+=========================================\n+\n+This example compares different measures of functional connectivity between\n+regions of interest.\n+\n+\"\"\"\n+\n+# Fetch dataset\n+import nilearn.datasets\n+atlas = nilearn.datasets.fetch_atlas_msdl()\n+dataset = nilearn.datasets.fetch_adhd()\n+\n+# Extract and preprocess regions time series\n+import nilearn.input_data\n+import joblib\n+mem = joblib.Memory('/home/sb238920/CODE/Parietal/nilearn/nilearn_cache/adhd')\n+masker = nilearn.input_data.NiftiMapsMasker(\n+    atlas.maps, resampling_target=\"maps\", detrend=True,\n+    low_pass=None, high_pass=None, t_r=2.5, standardize=False,","path":"examples/connectivity/plot_adhd_tangent.py","position":null,"original_position":21,"commit_id":"22f2e7cf22b22f7681977e91b8d4b275c17aec7f","original_commit_id":"6764c0173c2c32c5f0f1940172bf96627f114df4","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":"Yes here I am !\r\nI removed filtering and confounds regression on purpose: tangent behaves better with noisy data. Its score falls down when filtering.\r\nI don't standardize because \r\n- I want to show the difference between covariance and correlation measure\r\n- standardizing ruins tangent score\r\n- the tangent mean has not unit diagonal even if individual time series are standardized","created_at":"2015-07-16T10:42:24Z","updated_at":"2015-07-16T10:42:24Z","html_url":"https://github.com/nilearn/nilearn/pull/677#discussion_r34775187","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/677","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/34775187"},"html":{"href":"https://github.com/nilearn/nilearn/pull/677#discussion_r34775187"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/677"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/677","id":40036725,"html_url":"https://github.com/nilearn/nilearn/pull/677","diff_url":"https://github.com/nilearn/nilearn/pull/677.diff","patch_url":"https://github.com/nilearn/nilearn/pull/677.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/677","number":677,"state":"open","locked":false,"title":"Tangent classif","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":"Classification on ADHD with different measures of connectivity. Addresses most comments of PR #227, except moving functions _cov_to_corr and prec_to_partial to nilearn._utils.\r\nI am wondering if the name 'tangent' is a good one.","created_at":"2015-07-15T15:39:11Z","updated_at":"2015-07-16T10:42:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edee4cacbaddad5690fa7078ac49358aa1a5b3a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/677/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/677/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/677/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/22f2e7cf22b22f7681977e91b8d4b275c17aec7f","head":{"label":"salma1601:tangent_classif","ref":"tangent_classif","sha":"22f2e7cf22b22f7681977e91b8d4b275c17aec7f","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}","created_at":"2014-03-27T10:26:53Z","updated_at":"2015-07-02T13:06:52Z","pushed_at":"2015-07-16T10:35:30Z","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":35126,"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":"ddef38a299ed0fedeee5f16f6cc08060dd998018","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-07-14T23:48:39Z","pushed_at":"2015-07-16T10:35:30Z","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":15111,"stargazers_count":101,"watchers_count":101,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":86,"forks":71,"open_issues":86,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/677"},"html":{"href":"https://github.com/nilearn/nilearn/pull/677"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/677"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/677/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/677/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/677/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/22f2e7cf22b22f7681977e91b8d4b275c17aec7f"}}}}