[scikit-learn] Class weight SVC

Francesco basciani faf96 at hotmail.it
Fri Apr 24 06:37:43 EDT 2020


Hi, i have a question regarding the class weights in SVC. I have an imbalanced binary classification problem. In my case the ratio between the positive class and the negative class is 4:1. I just want to know if setting class weight to:
class_weight = {1: 0.25, 0: 1} is the same to setting it to:
class_weight = {1: 1, 0: 4}.

Because in my case i obtain differents results using the two definition of the class weight

Inviato da Posta<https://go.microsoft.com/fwlink/?LinkId=550986> per Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20200424/0715726e/attachment-0001.html>


More information about the scikit-learn mailing list