{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/57363422","id":57363422,"diff_hunk":"@@ -150,3 +195,74 @@ def score(self, X, y, sample_weight=None):\n         from .metrics import r2_score\n         return r2_score(y, self.predict(X), sample_weight=sample_weight,\n                         multioutput='uniform_average')\n+\n+\n+class MultiOutputClassifier(MultiOutputEstimator, ClassifierMixin):\n+    \"\"\"Multi target classification\n+\n+    This strategy consits of fitting one classifier per target. This is a\n+    simple strategy for extending classifiers that do not natively support\n+    multi-target classification\n+\n+    Parameters\n+    ----------\n+    estimator : estimator object\n+        An estimator object implementing `fit`,`score` and `predict_proba`.","path":"sklearn/multioutput.py","position":194,"original_position":194,"commit_id":"58775d144c9934ed06777e85370df1ea4f162515","original_commit_id":"58775d144c9934ed06777e85370df1ea4f162515","user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"body":"Please add spaces here..","created_at":"2016-03-24T18:18:40Z","updated_at":"2016-03-24T18:18:40Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/6127#discussion_r57363422","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/57363422"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/6127#discussion_r57363422"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127","id":55291330,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/6127","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/6127.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/6127.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6127","number":6127,"state":"open","locked":false,"title":"[MRG] MultiOutputClassifier","user":{"login":"hugobowne","id":4182382,"avatar_url":"https://avatars.githubusercontent.com/u/4182382?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobowne","html_url":"https://github.com/hugobowne","followers_url":"https://api.github.com/users/hugobowne/followers","following_url":"https://api.github.com/users/hugobowne/following{/other_user}","gists_url":"https://api.github.com/users/hugobowne/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobowne/subscriptions","organizations_url":"https://api.github.com/users/hugobowne/orgs","repos_url":"https://api.github.com/users/hugobowne/repos","events_url":"https://api.github.com/users/hugobowne/events{/privacy}","received_events_url":"https://api.github.com/users/hugobowne/received_events","type":"User","site_admin":false},"body":"TODO for this PR\r\n\r\n- [ ] Check if meta of meta works (a few combinations)\r\n\r\n- [ ] To check the shapes of outputs of all methods\r\n\r\n- [ ] Check if meta of meta works (a few combinations)\r\n\r\n- [ ] Compare with multiple runs of single o/p estimators\r\n\r\n- [ ] Check if the various errors are raised properly (when the n_outputs during predict time is > (or !=?) during fit time).\r\n\r\n- [ ] Check if not fitted error is raised? (or could we make the general tests take care of that? I think there is a test for meta estimators.)\r\n\r\n- [ ] See if this passes all the meta estimators' tests\r\n\r\n- [ ] Make the tests pass ;)\r\n\r\n- [ ] Add documentation","created_at":"2016-01-07T02:02:53Z","updated_at":"2016-03-24T18:18:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"068df380fb95e8242fd3b8f0de967706d694673b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6127/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/58775d144c9934ed06777e85370df1ea4f162515","head":{"label":"hugobowne:MultiOneVsRestClassifier","ref":"MultiOneVsRestClassifier","sha":"58775d144c9934ed06777e85370df1ea4f162515","user":{"login":"hugobowne","id":4182382,"avatar_url":"https://avatars.githubusercontent.com/u/4182382?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobowne","html_url":"https://github.com/hugobowne","followers_url":"https://api.github.com/users/hugobowne/followers","following_url":"https://api.github.com/users/hugobowne/following{/other_user}","gists_url":"https://api.github.com/users/hugobowne/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobowne/subscriptions","organizations_url":"https://api.github.com/users/hugobowne/orgs","repos_url":"https://api.github.com/users/hugobowne/repos","events_url":"https://api.github.com/users/hugobowne/events{/privacy}","received_events_url":"https://api.github.com/users/hugobowne/received_events","type":"User","site_admin":false},"repo":{"id":43388900,"name":"scikit-learn","full_name":"hugobowne/scikit-learn","owner":{"login":"hugobowne","id":4182382,"avatar_url":"https://avatars.githubusercontent.com/u/4182382?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobowne","html_url":"https://github.com/hugobowne","followers_url":"https://api.github.com/users/hugobowne/followers","following_url":"https://api.github.com/users/hugobowne/following{/other_user}","gists_url":"https://api.github.com/users/hugobowne/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobowne/subscriptions","organizations_url":"https://api.github.com/users/hugobowne/orgs","repos_url":"https://api.github.com/users/hugobowne/repos","events_url":"https://api.github.com/users/hugobowne/events{/privacy}","received_events_url":"https://api.github.com/users/hugobowne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hugobowne/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/hugobowne/scikit-learn","forks_url":"https://api.github.com/repos/hugobowne/scikit-learn/forks","keys_url":"https://api.github.com/repos/hugobowne/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hugobowne/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hugobowne/scikit-learn/teams","hooks_url":"https://api.github.com/repos/hugobowne/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/hugobowne/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/hugobowne/scikit-learn/events","assignees_url":"https://api.github.com/repos/hugobowne/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/hugobowne/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/hugobowne/scikit-learn/tags","blobs_url":"https://api.github.com/repos/hugobowne/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hugobowne/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hugobowne/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/hugobowne/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hugobowne/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/hugobowne/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/hugobowne/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/hugobowne/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/hugobowne/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/hugobowne/scikit-learn/subscription","commits_url":"https://api.github.com/repos/hugobowne/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/hugobowne/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/hugobowne/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/hugobowne/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/hugobowne/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/hugobowne/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hugobowne/scikit-learn/merges","archive_url":"https://api.github.com/repos/hugobowne/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hugobowne/scikit-learn/downloads","issues_url":"https://api.github.com/repos/hugobowne/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/hugobowne/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/hugobowne/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/hugobowne/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hugobowne/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/hugobowne/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/hugobowne/scikit-learn/deployments","created_at":"2015-09-29T19:15:54Z","updated_at":"2015-09-29T19:16:08Z","pushed_at":"2016-03-23T12:47:07Z","git_url":"git://github.com/hugobowne/scikit-learn.git","ssh_url":"git@github.com:hugobowne/scikit-learn.git","clone_url":"https://github.com/hugobowne/scikit-learn.git","svn_url":"https://github.com/hugobowne/scikit-learn","homepage":"http://scikit-learn.org","size":68044,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"scikit-learn:master","ref":"master","sha":"5e4132727611dd5007192129e3ef6e9a2629532f","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/deployments","created_at":"2010-08-17T09:43:38Z","updated_at":"2016-03-24T16:49:01Z","pushed_at":"2016-03-24T16:59:21Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":103498,"stargazers_count":10377,"watchers_count":10377,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6039,"mirror_url":null,"open_issues_count":1133,"forks":6039,"open_issues":1133,"watchers":10377,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/6127"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6127"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6127/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6127/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/58775d144c9934ed06777e85370df1ea4f162515"}}}}