{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/14","repository_url":"https://api.github.com/repos/pandas-ml/pandas_confusion","labels_url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/14/comments","events_url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/14/events","html_url":"https://github.com/pandas-ml/pandas_confusion/issues/14","id":153226869,"number":14,"title":"ValueError: math domain error while running cm.print_stats()","user":{"login":"Preetixen","id":16998342,"avatar_url":"https://avatars.githubusercontent.com/u/16998342?v=3","gravatar_id":"","url":"https://api.github.com/users/Preetixen","html_url":"https://github.com/Preetixen","followers_url":"https://api.github.com/users/Preetixen/followers","following_url":"https://api.github.com/users/Preetixen/following{/other_user}","gists_url":"https://api.github.com/users/Preetixen/gists{/gist_id}","starred_url":"https://api.github.com/users/Preetixen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preetixen/subscriptions","organizations_url":"https://api.github.com/users/Preetixen/orgs","repos_url":"https://api.github.com/users/Preetixen/repos","events_url":"https://api.github.com/users/Preetixen/events{/privacy}","received_events_url":"https://api.github.com/users/Preetixen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T13:01:06Z","updated_at":"2016-05-06T03:15:42Z","closed_at":null,"body":"Hi,\r\n\r\nI have installed `pandas_confusion`. It shown cm correctly. but error comes while calling print_stats()\r\nPlease help.\r\n\r\nHere is some info:\r\n\r\n```python\r\nIn [921]: y_train\r\nOut[921]: array([2, 2, 2, ..., 4, 4, 4])\r\n\r\nIn [922]: predd\r\nOut[922]: array([2, 1, 2, ..., 4, 5, 4])\r\n\r\nIn [923]: cm.print_stats()\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-923-f061aaa93a3e> in <module>()\r\n----> 1 cm.print_stats()\r\n;..\r\n  \r\n.\r\n\r\n841     @property\r\n\r\nValueError: math domain error\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/comments/217338818","html_url":"https://github.com/pandas-ml/pandas_confusion/issues/14#issuecomment-217338818","issue_url":"https://api.github.com/repos/pandas-ml/pandas_confusion/issues/14","id":217338818,"user":{"login":"Preetixen","id":16998342,"avatar_url":"https://avatars.githubusercontent.com/u/16998342?v=3","gravatar_id":"","url":"https://api.github.com/users/Preetixen","html_url":"https://github.com/Preetixen","followers_url":"https://api.github.com/users/Preetixen/followers","following_url":"https://api.github.com/users/Preetixen/following{/other_user}","gists_url":"https://api.github.com/users/Preetixen/gists{/gist_id}","starred_url":"https://api.github.com/users/Preetixen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preetixen/subscriptions","organizations_url":"https://api.github.com/users/Preetixen/orgs","repos_url":"https://api.github.com/users/Preetixen/repos","events_url":"https://api.github.com/users/Preetixen/events{/privacy}","received_events_url":"https://api.github.com/users/Preetixen/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T03:15:42Z","updated_at":"2016-05-06T03:15:42Z","body":"\r\n\r\n\r\n\r\nIn [569]: y_train=lb.fit_transform(y_train)\r\nIn [570]: y_train.dtype\r\nOut[570]: dtype('int64')\r\n\r\nIn [571]: predd=lb.fit_transform(predd)\r\nIn [572]: predd.dtype\r\nOut[572]: dtype('int64')\r\n\r\nIn [573]: predd.shape\r\nOut[573]: (513391,)\r\n\r\nIn [574]: predd.shape\r\nOut[574]: (513391,)\r\n\r\nIn [575]: predd\r\nOut[575]: array([2, 2, 2, ..., 4, 4, 4])\r\n\r\nIn [576]: y_train\r\nOut[576]: array([2, 2, 2, ..., 4, 4, 4])\r\n\r\n"}}