Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weights parameters for the svm wrapper #42

Open
viorelzavoiu opened this issue Jul 12, 2017 · 1 comment
Open

Weights parameters for the svm wrapper #42

viorelzavoiu opened this issue Jul 12, 2017 · 1 comment

Comments

@viorelzavoiu
Copy link

Hi,
Congratulations on this project, it is very useful and fast to use. I have one single question: does the module also support the "weight" parameter as specified in the C++ version documentation:

"-wi weight : set the parameter C of class i to weight*C, for C-SVC (default 1)"

I'm asking because I'm not quite sure how to best handle imbalanced datasets, and I think this might be useful.

Thank you very much, and keep up the good work !

@nicolaspanel
Copy link
Owner

does the module also support the "weight" parameter as specified in the C++ version documentation

No, it is not supported right now.

I'm asking because I'm not quite sure how to best handle imbalanced datasets, and I think this might be useful.

It may help. I suggest to give a try to sklearn / SVC first, with class_weight='balanced'. If it brings significant improvement then we will consider spending time on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants