{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5615","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5615/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5615/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5615/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5615","id":113987230,"number":5615,"title":"Doc adding documentation on class weight and sample weight","user":{"login":"sumitbinnani","id":11199045,"avatar_url":"https://avatars.githubusercontent.com/u/11199045?v=3","gravatar_id":"","url":"https://api.github.com/users/sumitbinnani","html_url":"https://github.com/sumitbinnani","followers_url":"https://api.github.com/users/sumitbinnani/followers","following_url":"https://api.github.com/users/sumitbinnani/following{/other_user}","gists_url":"https://api.github.com/users/sumitbinnani/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitbinnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitbinnani/subscriptions","organizations_url":"https://api.github.com/users/sumitbinnani/orgs","repos_url":"https://api.github.com/users/sumitbinnani/repos","events_url":"https://api.github.com/users/sumitbinnani/events{/privacy}","received_events_url":"https://api.github.com/users/sumitbinnani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-29T06:08:33Z","updated_at":"2015-11-16T23:36:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5615","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5615","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5615.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5615.patch"},"body":"Added documentation on ``sample_weight`` and ``class_weight``.\r\nSee #4911"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/157209672","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5615#issuecomment-157209672","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5615","id":157209672,"user":{"login":"trevorstephens","id":5210848,"avatar_url":"https://avatars.githubusercontent.com/u/5210848?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorstephens","html_url":"https://github.com/trevorstephens","followers_url":"https://api.github.com/users/trevorstephens/followers","following_url":"https://api.github.com/users/trevorstephens/following{/other_user}","gists_url":"https://api.github.com/users/trevorstephens/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorstephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorstephens/subscriptions","organizations_url":"https://api.github.com/users/trevorstephens/orgs","repos_url":"https://api.github.com/users/trevorstephens/repos","events_url":"https://api.github.com/users/trevorstephens/events{/privacy}","received_events_url":"https://api.github.com/users/trevorstephens/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T23:36:58Z","updated_at":"2015-11-16T23:36:58Z","body":"It may be helpful to give some examples of potential uses for `sample_weight` here. Such as using lower wights for older observations, or observations where for some other reason you have lower confidence in their accuracy.\r\n\r\nIt might also be useful for `class_weight` to explain the preset \"balanced\" strategies available for most classifiers as well as mentioning that this might not be optimal for inseparable classes."}}