-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unbalanced data / weights #9
Comments
Changed my code a bit, based on errors, to: pa = Parameter.new Seems to be working now... Will be in touch with results |
Sorry, I'm reopening. I'm using the above formulation, but even adjusting my weights in an exaggerated manner (i.e., assign positive weight = 10^-5 and negative_weight =1) does not fundamentally change my results in any real way. I am assigning weights incorrectly, or would you have other advice? |
Hi Peter, Thanks for pointing this out, at this point I don't have much idea, I am planning to rewrite this at some point. The results of earlier versions of the gem were verified by the LIBSVM developers, the gem then got upgraded to make use of newer versions of LIBSVM, so it's possible that the weighted input may not be working. Tom |
Hi Tom, |
Hi Tom et al,
I'm dealing with some pretty unbalanced data and was trying to define the parameters necessary for assigning my own weights. I'm doing the following:
This results in a segmentation fault. I can avoid this segmentation fault by setting nr_weight to 0, but as I understand it, this will mean no weights are assigned (i.e., all classes get weight 1). Could I please ask for your advice on what I'm doing wrong?
Thanks for the awesome library!
Peter
The text was updated successfully, but these errors were encountered: