{"action":"created","comment":{"url":"https://api.github.com/repos/poldracklab/mriqc/pulls/comments/122339956","pull_request_review_id":44448832,"id":122339956,"diff_hunk":"@@ -30,13 +36,12 @@ def main():\n     \"\"\"Entry point\"\"\"\n     import yaml\n     from io import open\n+    from os.path import isfile, splitext","path":"mriqc/bin/mriqc_clf.py","position":22,"original_position":22,"commit_id":"c5f3a05fa7ca9d8ae0c84ea4a39faaebd0f4f12b","original_commit_id":"c5f3a05fa7ca9d8ae0c84ea4a39faaebd0f4f12b","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Unused variable 'splitext'](https://www.codacy.com/app/code_3/mriqc/pullRequest?prid=699890)","created_at":"2017-06-16T00:05:23Z","updated_at":"2017-06-16T00:05:24Z","html_url":"https://github.com/poldracklab/mriqc/pull/555#discussion_r122339956","pull_request_url":"https://api.github.com/repos/poldracklab/mriqc/pulls/555","_links":{"self":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/comments/122339956"},"html":{"href":"https://github.com/poldracklab/mriqc/pull/555#discussion_r122339956"},"pull_request":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/555"}}},"pull_request":{"url":"https://api.github.com/repos/poldracklab/mriqc/pulls/555","id":124689964,"html_url":"https://github.com/poldracklab/mriqc/pull/555","diff_url":"https://github.com/poldracklab/mriqc/pull/555.diff","patch_url":"https://github.com/poldracklab/mriqc/pull/555.patch","issue_url":"https://api.github.com/repos/poldracklab/mriqc/issues/555","number":555,"state":"open","locked":false,"title":"[ENH] Second revision of the classifier","user":{"login":"oesteban","id":598470,"avatar_url":"https://avatars1.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},"body":"- [x] Set matplotlib plugin to `agg` in docker image\r\n- [x] Migrate scalings to sklearn pipelining system\r\n- [x] Add Satra's feature selection for RFC\r\n- [x] Make model selection compatible with sklearn `Pipeline`\r\n- [x] Multiclass classification\r\n- [x] Add feature selection filter based on Sites prediction (requires pinning to development sklearn-0.19)\r\n- [x] New `RobustLeavePGroupsOut`, which is a leave-one-site-out split that excludes test folds without positive samples. In practical terms: removes the folds for the 2 sites without bad cases in the ABIDE labeling. This allows replacing the buggy `RobustGridSearchCV` with the standard `GridSearchCV` of sklearn.\r\n- [x] Choice between `RepeatedStratifiedKFold` and `RobustLeavePGroupsOut` in `mriqc_clf`\r\n- [x] Write cross-validation results to an `.npz` file.","created_at":"2017-06-08T16:15:31Z","updated_at":"2017-06-16T00:05:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa5207ffa79e784325f384bc0de4334f59ae1657","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/poldracklab/mriqc/pulls/555/commits","review_comments_url":"https://api.github.com/repos/poldracklab/mriqc/pulls/555/comments","review_comment_url":"https://api.github.com/repos/poldracklab/mriqc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poldracklab/mriqc/issues/555/comments","statuses_url":"https://api.github.com/repos/poldracklab/mriqc/statuses/c5f3a05fa7ca9d8ae0c84ea4a39faaebd0f4f12b","head":{"label":"oesteban:enh/normalization-iqr","ref":"enh/normalization-iqr","sha":"c5f3a05fa7ca9d8ae0c84ea4a39faaebd0f4f12b","user":{"login":"oesteban","id":598470,"avatar_url":"https://avatars1.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},"repo":{"id":54756129,"name":"mriqc","full_name":"oesteban/mriqc","owner":{"login":"oesteban","id":598470,"avatar_url":"https://avatars1.githubusercontent.com/u/598470?v=3","gravatar_id":"","url":"https://api.github.com/users/oesteban","html_url":"https://github.com/oesteban","followers_url":"https://api.github.com/users/oesteban/followers","following_url":"https://api.github.com/users/oesteban/following{/other_user}","gists_url":"https://api.github.com/users/oesteban/gists{/gist_id}","starred_url":"https://api.github.com/users/oesteban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oesteban/subscriptions","organizations_url":"https://api.github.com/users/oesteban/orgs","repos_url":"https://api.github.com/users/oesteban/repos","events_url":"https://api.github.com/users/oesteban/events{/privacy}","received_events_url":"https://api.github.com/users/oesteban/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oesteban/mriqc","description":"The package provides a series of image processing workflows to extract and compute a series of NR (no-reference), IQMs (image quality metrics) to be used in QAPs (quality assessment protocols) for MRI (magnetic resonance imaging).","fork":true,"url":"https://api.github.com/repos/oesteban/mriqc","forks_url":"https://api.github.com/repos/oesteban/mriqc/forks","keys_url":"https://api.github.com/repos/oesteban/mriqc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oesteban/mriqc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oesteban/mriqc/teams","hooks_url":"https://api.github.com/repos/oesteban/mriqc/hooks","issue_events_url":"https://api.github.com/repos/oesteban/mriqc/issues/events{/number}","events_url":"https://api.github.com/repos/oesteban/mriqc/events","assignees_url":"https://api.github.com/repos/oesteban/mriqc/assignees{/user}","branches_url":"https://api.github.com/repos/oesteban/mriqc/branches{/branch}","tags_url":"https://api.github.com/repos/oesteban/mriqc/tags","blobs_url":"https://api.github.com/repos/oesteban/mriqc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oesteban/mriqc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oesteban/mriqc/git/refs{/sha}","trees_url":"https://api.github.com/repos/oesteban/mriqc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oesteban/mriqc/statuses/{sha}","languages_url":"https://api.github.com/repos/oesteban/mriqc/languages","stargazers_url":"https://api.github.com/repos/oesteban/mriqc/stargazers","contributors_url":"https://api.github.com/repos/oesteban/mriqc/contributors","subscribers_url":"https://api.github.com/repos/oesteban/mriqc/subscribers","subscription_url":"https://api.github.com/repos/oesteban/mriqc/subscription","commits_url":"https://api.github.com/repos/oesteban/mriqc/commits{/sha}","git_commits_url":"https://api.github.com/repos/oesteban/mriqc/git/commits{/sha}","comments_url":"https://api.github.com/repos/oesteban/mriqc/comments{/number}","issue_comment_url":"https://api.github.com/repos/oesteban/mriqc/issues/comments{/number}","contents_url":"https://api.github.com/repos/oesteban/mriqc/contents/{+path}","compare_url":"https://api.github.com/repos/oesteban/mriqc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oesteban/mriqc/merges","archive_url":"https://api.github.com/repos/oesteban/mriqc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oesteban/mriqc/downloads","issues_url":"https://api.github.com/repos/oesteban/mriqc/issues{/number}","pulls_url":"https://api.github.com/repos/oesteban/mriqc/pulls{/number}","milestones_url":"https://api.github.com/repos/oesteban/mriqc/milestones{/number}","notifications_url":"https://api.github.com/repos/oesteban/mriqc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oesteban/mriqc/labels{/name}","releases_url":"https://api.github.com/repos/oesteban/mriqc/releases{/id}","deployments_url":"https://api.github.com/repos/oesteban/mriqc/deployments","created_at":"2016-03-26T01:07:14Z","updated_at":"2017-06-14T23:58:34Z","pushed_at":"2017-06-15T23:52:15Z","git_url":"git://github.com/oesteban/mriqc.git","ssh_url":"git@github.com:oesteban/mriqc.git","clone_url":"https://github.com/oesteban/mriqc.git","svn_url":"https://github.com/oesteban/mriqc","homepage":"http://mriqc.readthedocs.org","size":85597,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"poldracklab:master","ref":"master","sha":"2b23d874df482633017966575fd0aa170cdc5d5b","user":{"login":"poldracklab","id":9287954,"avatar_url":"https://avatars1.githubusercontent.com/u/9287954?v=3","gravatar_id":"","url":"https://api.github.com/users/poldracklab","html_url":"https://github.com/poldracklab","followers_url":"https://api.github.com/users/poldracklab/followers","following_url":"https://api.github.com/users/poldracklab/following{/other_user}","gists_url":"https://api.github.com/users/poldracklab/gists{/gist_id}","starred_url":"https://api.github.com/users/poldracklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldracklab/subscriptions","organizations_url":"https://api.github.com/users/poldracklab/orgs","repos_url":"https://api.github.com/users/poldracklab/repos","events_url":"https://api.github.com/users/poldracklab/events{/privacy}","received_events_url":"https://api.github.com/users/poldracklab/received_events","type":"Organization","site_admin":false},"repo":{"id":49015296,"name":"mriqc","full_name":"poldracklab/mriqc","owner":{"login":"poldracklab","id":9287954,"avatar_url":"https://avatars1.githubusercontent.com/u/9287954?v=3","gravatar_id":"","url":"https://api.github.com/users/poldracklab","html_url":"https://github.com/poldracklab","followers_url":"https://api.github.com/users/poldracklab/followers","following_url":"https://api.github.com/users/poldracklab/following{/other_user}","gists_url":"https://api.github.com/users/poldracklab/gists{/gist_id}","starred_url":"https://api.github.com/users/poldracklab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poldracklab/subscriptions","organizations_url":"https://api.github.com/users/poldracklab/orgs","repos_url":"https://api.github.com/users/poldracklab/repos","events_url":"https://api.github.com/users/poldracklab/events{/privacy}","received_events_url":"https://api.github.com/users/poldracklab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poldracklab/mriqc","description":"Automated Quality Control and visual reports for Quality Assesment of structural (T1w, T2w) and functional MRI of the brain","fork":false,"url":"https://api.github.com/repos/poldracklab/mriqc","forks_url":"https://api.github.com/repos/poldracklab/mriqc/forks","keys_url":"https://api.github.com/repos/poldracklab/mriqc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poldracklab/mriqc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poldracklab/mriqc/teams","hooks_url":"https://api.github.com/repos/poldracklab/mriqc/hooks","issue_events_url":"https://api.github.com/repos/poldracklab/mriqc/issues/events{/number}","events_url":"https://api.github.com/repos/poldracklab/mriqc/events","assignees_url":"https://api.github.com/repos/poldracklab/mriqc/assignees{/user}","branches_url":"https://api.github.com/repos/poldracklab/mriqc/branches{/branch}","tags_url":"https://api.github.com/repos/poldracklab/mriqc/tags","blobs_url":"https://api.github.com/repos/poldracklab/mriqc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poldracklab/mriqc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poldracklab/mriqc/git/refs{/sha}","trees_url":"https://api.github.com/repos/poldracklab/mriqc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poldracklab/mriqc/statuses/{sha}","languages_url":"https://api.github.com/repos/poldracklab/mriqc/languages","stargazers_url":"https://api.github.com/repos/poldracklab/mriqc/stargazers","contributors_url":"https://api.github.com/repos/poldracklab/mriqc/contributors","subscribers_url":"https://api.github.com/repos/poldracklab/mriqc/subscribers","subscription_url":"https://api.github.com/repos/poldracklab/mriqc/subscription","commits_url":"https://api.github.com/repos/poldracklab/mriqc/commits{/sha}","git_commits_url":"https://api.github.com/repos/poldracklab/mriqc/git/commits{/sha}","comments_url":"https://api.github.com/repos/poldracklab/mriqc/comments{/number}","issue_comment_url":"https://api.github.com/repos/poldracklab/mriqc/issues/comments{/number}","contents_url":"https://api.github.com/repos/poldracklab/mriqc/contents/{+path}","compare_url":"https://api.github.com/repos/poldracklab/mriqc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poldracklab/mriqc/merges","archive_url":"https://api.github.com/repos/poldracklab/mriqc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poldracklab/mriqc/downloads","issues_url":"https://api.github.com/repos/poldracklab/mriqc/issues{/number}","pulls_url":"https://api.github.com/repos/poldracklab/mriqc/pulls{/number}","milestones_url":"https://api.github.com/repos/poldracklab/mriqc/milestones{/number}","notifications_url":"https://api.github.com/repos/poldracklab/mriqc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poldracklab/mriqc/labels{/name}","releases_url":"https://api.github.com/repos/poldracklab/mriqc/releases{/id}","deployments_url":"https://api.github.com/repos/poldracklab/mriqc/deployments","created_at":"2016-01-04T18:31:38Z","updated_at":"2017-06-08T15:30:15Z","pushed_at":"2017-06-15T23:52:16Z","git_url":"git://github.com/poldracklab/mriqc.git","ssh_url":"git@github.com:poldracklab/mriqc.git","clone_url":"https://github.com/poldracklab/mriqc.git","svn_url":"https://github.com/poldracklab/mriqc","homepage":"http://mriqc.readthedocs.io","size":85534,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":47,"forks":16,"open_issues":47,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/555"},"html":{"href":"https://github.com/poldracklab/mriqc/pull/555"},"issue":{"href":"https://api.github.com/repos/poldracklab/mriqc/issues/555"},"comments":{"href":"https://api.github.com/repos/poldracklab/mriqc/issues/555/comments"},"review_comments":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/555/comments"},"review_comment":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poldracklab/mriqc/pulls/555/commits"},"statuses":{"href":"https://api.github.com/repos/poldracklab/mriqc/statuses/c5f3a05fa7ca9d8ae0c84ea4a39faaebd0f4f12b"}}}}
{"actor":{"display_login":"codacy-bot"}}