{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4001","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4001/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4001/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4001/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4001","id":52838741,"number":4001,"title":"Added sample weight support to confusion matrix.","user":{"login":"DanielSidhion","id":160084,"avatar_url":"https://avatars.githubusercontent.com/u/160084?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielSidhion","html_url":"https://github.com/DanielSidhion","followers_url":"https://api.github.com/users/DanielSidhion/followers","following_url":"https://api.github.com/users/DanielSidhion/following{/other_user}","gists_url":"https://api.github.com/users/DanielSidhion/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielSidhion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielSidhion/subscriptions","organizations_url":"https://api.github.com/users/DanielSidhion/orgs","repos_url":"https://api.github.com/users/DanielSidhion/repos","events_url":"https://api.github.com/users/DanielSidhion/events{/privacy}","received_events_url":"https://api.github.com/users/DanielSidhion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-24T22:23:55Z","updated_at":"2016-01-18T05:08:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4001","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4001","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/4001.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/4001.patch"},"body":"Added a sample_weight parameter inside confusion_matrix which\r\nwill be used to build the confusion matrix. If not present, it\r\nwill default to np.ones() of size equal to the number of samples.\r\nTests were created in test_classification.py instead of\r\ntest_common.py."},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/172427117","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4001#issuecomment-172427117","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4001","id":172427117,"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},"created_at":"2016-01-18T05:08:30Z","updated_at":"2016-01-18T05:08:30Z","body":"Sure. !"}}