{"action":"opened","issue":{"url":"https://api.github.com/repos/scls19fr/pandas_confusion/issues/4","labels_url":"https://api.github.com/repos/scls19fr/pandas_confusion/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/scls19fr/pandas_confusion/issues/4/comments","events_url":"https://api.github.com/repos/scls19fr/pandas_confusion/issues/4/events","html_url":"https://github.com/scls19fr/pandas_confusion/issues/4","id":98417682,"number":4,"title":"0 and 1 can be confused","user":{"login":"scls19fr","id":109167,"avatar_url":"https://avatars.githubusercontent.com/u/109167?v=3","gravatar_id":"","url":"https://api.github.com/users/scls19fr","html_url":"https://github.com/scls19fr","followers_url":"https://api.github.com/users/scls19fr/followers","following_url":"https://api.github.com/users/scls19fr/following{/other_user}","gists_url":"https://api.github.com/users/scls19fr/gists{/gist_id}","starred_url":"https://api.github.com/users/scls19fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scls19fr/subscriptions","organizations_url":"https://api.github.com/users/scls19fr/orgs","repos_url":"https://api.github.com/users/scls19fr/repos","events_url":"https://api.github.com/users/scls19fr/events{/privacy}","received_events_url":"https://api.github.com/users/scls19fr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T15:51:01Z","updated_at":"2015-07-31T15:51:01Z","closed_at":null,"body":"    import matplotlib.pyplot as plt\r\n    from pandas_confusion import ConfusionMatrix\r\n    y_actu = ['rabbit', 'cat', 'rabbit', 'rabbit', 'cat', 'dog', 'dog', 'rabbit', 'rabbit', 'cat', 'dog', 'rabbit']\r\n    y_pred = ['cat', 'dog', 'rabbit', 'dog', 'rabbit', 'cat', 'dog', 'cat', 'rabbit', 'cat', 'rabbit', 'rabbit']\r\n    confusion_matrix = ConfusionMatrix(y_actu, y_pred)\r\n    confusion_matrix.plot()\r\n    plt.show()\r\n\r\nConfusion matrix looks like:\r\n\r\n    Predicted  cat  dog  rabbit  __all__\r\n    Actual\r\n    cat          1    1       1        3\r\n    dog          1    1       1        3\r\n    rabbit       2    1       3        6\r\n    __all__      4    3       5       12\r\n\r\nPlot looks like:\r\n\r\n![figure_1](https://cloud.githubusercontent.com/assets/109167/9011294/a9fe7846-37ac-11e5-82a1-082dd2c89199.png)\r\n\r\n\r\n0 and 1 can be confused"}}