{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/12320","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/12320/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/12320/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/12320/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/12320","id":367577423,"node_id":"MDU6SXNzdWUzNjc1Nzc0MjM=","number":12320,"title":"deprecation warning from inside sklearn.preprocessing.LabelEncoder","user":{"login":"nitinmnsn","id":39696508,"node_id":"MDQ6VXNlcjM5Njk2NTA4","avatar_url":"https://avatars0.githubusercontent.com/u/39696508?v=4","gravatar_id":"","url":"https://api.github.com/users/nitinmnsn","html_url":"https://github.com/nitinmnsn","followers_url":"https://api.github.com/users/nitinmnsn/followers","following_url":"https://api.github.com/users/nitinmnsn/following{/other_user}","gists_url":"https://api.github.com/users/nitinmnsn/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinmnsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinmnsn/subscriptions","organizations_url":"https://api.github.com/users/nitinmnsn/orgs","repos_url":"https://api.github.com/users/nitinmnsn/repos","events_url":"https://api.github.com/users/nitinmnsn/events{/privacy}","received_events_url":"https://api.github.com/users/nitinmnsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-07T17:55:25Z","updated_at":"2018-10-07T17:57:50Z","closed_at":null,"author_association":"NONE","body":"`pd.__version__,np.__version__,sklearn.__version__` \r\nout: '0.20.3', '1.14.5', '0.19.0'\r\n\r\n`/opt/ds/local/lib/python2.7/site-packages/sklearn/preprocessing/label.pyc in inverse_transform(self, y)\r\n    149 \r\n\r\n    150         diff = np.setdiff1d(y, np.arange(len(self.classes_)))\r\n    151         if diff:\r\n    152             raise ValueError(\"y contains new labels: %s\" % str(diff))\r\n    153         y = `np.asarray(y)`\r\n\r\n\r\n\r\nDeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty\r\n\r\nI think this needs to change to diff.size > 0 as is suggested in warning"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/427673098","html_url":"https://github.com/scikit-learn/scikit-learn/issues/12320#issuecomment-427673098","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/12320","id":427673098,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY3MzA5OA==","user":{"login":"amueller","id":449558,"node_id":"MDQ6VXNlcjQ0OTU1OA==","avatar_url":"https://avatars3.githubusercontent.com/u/449558?v=4","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T17:57:50Z","updated_at":"2018-10-07T17:57:50Z","author_association":"MEMBER","body":"Can you please upgrade to scikit-learn 0.20.0 and see if the problem persists?"}}
{"actor":{"display_login":"amueller"}}