{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4767","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4767/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4767/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4767/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4767","id":80233764,"number":4767,"title":"[MRG + 1] Add class_weight to PA Classifier, remove from PA Regressor","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-24T18:35:37Z","updated_at":"2015-06-04T17:27:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4767","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4767","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/4767.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/4767.patch"},"body":"Was browsing Landscape.io and noticed this strange one. `class_weight` is a zombie param for the `PassiveAggressiveRegressor`, not present for the `PassiveAggressiveClassifier` O_o\r\n\r\nRemoved from regressor, didn't think deprecation is necessary since it didn't go anywhere and makes no sense either, and implemented it for the classifier with some tests."},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/108982642","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4767#issuecomment-108982642","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4767","id":108982642,"user":{"login":"vene","id":241745,"avatar_url":"https://avatars.githubusercontent.com/u/241745?v=3","gravatar_id":"","url":"https://api.github.com/users/vene","html_url":"https://github.com/vene","followers_url":"https://api.github.com/users/vene/followers","following_url":"https://api.github.com/users/vene/following{/other_user}","gists_url":"https://api.github.com/users/vene/gists{/gist_id}","starred_url":"https://api.github.com/users/vene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vene/subscriptions","organizations_url":"https://api.github.com/users/vene/orgs","repos_url":"https://api.github.com/users/vene/repos","events_url":"https://api.github.com/users/vene/events{/privacy}","received_events_url":"https://api.github.com/users/vene/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T17:27:15Z","updated_at":"2015-06-04T17:27:15Z","body":"> it states to initialize all sample weights to zero\r\n\r\nI skimmed through it and couldn't find this, could you point it out? They do talk about initializing the linear model's weight vector (the coefficients) to 0. Is there something I missed in the cost-sensitive learning section?\r\n\r\nI thought sample weights (and class weights) are a generally applicable concept, which is why people don't really mention them. But I'd leave sample weights for a different PR.\r\n"}}