GitHub PullRequestReviewCommentEvent at 2014-06-04 07:03:23
Repository: scikit-learn
Actor: arjoly
Payload: {"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/13373168","id":13373168,"diff_hunk":"@@ -275,17 +300,11 @@ def transform(self, y):\n         Y : numpy array of shape [n_samples, n_classes]\n         \"\"\"\n         self._check_fitted()\n-\n-        y_is_multilabel = type_of_target(y).startswith('multilabel')\n-\n-        if y_is_multilabel and not self.multilabel_:\n-            raise ValueError(\"The object was not fitted with multilabel\"\n-                             \" input.\")\n-\n         return label_binarize(y, self.classes_,\n-                              multilabel=self.multilabel_,\n+                              multilabel=None,\n                               pos_label=self.pos_label,\n-                              neg_label=self.neg_label)\n+                              neg_label=self.neg_label,\n+                              sparse_output=self.sparse_output)\n \n     def inverse_transform(self, Y, threshold=None):","path":"sklearn/preprocessing/label.py","position":99,"original_position":99,"commit_id":"c3781c9db6965d36447c02712e11bba5373e1507","original_commit_id":"c3781c9db6965d36447c02712e11bba5373e1507","user":{"login":"arjoly","id":1274722,"avatar_url":"https://avatars.githubusercontent.com/u/1274722?","gravatar_id":"9fb38ab677ea6f73bb07faa43b0677f9","url":"https://api.github.com/users/arjoly","html_url":"https://github.com/arjoly","followers_url":"https://api.github.com/users/arjoly/followers","following_url":"https://api.github.com/users/arjoly/following{/other_user}","gists_url":"https://api.github.com/users/arjoly/gists{/gist_id}","starred_url":"https://api.github.com/users/arjoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjoly/subscriptions","organizations_url":"https://api.github.com/users/arjoly/orgs","repos_url":"https://api.github.com/users/arjoly/repos","events_url":"https://api.github.com/users/arjoly/events{/privacy}","received_events_url":"https://api.github.com/users/arjoly/received_events","type":"User","site_admin":false},"body":"The Y and y parameter docstring need to be corrected and updated.","created_at":"2014-06-04T07:03:23Z","updated_at":"2014-06-04T07:03:23Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/3203#discussion_r13373168","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/3203","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/13373168"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/3203#discussion_r13373168"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/3203"}}}}