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

Orange.classification.svm.SVMLearner __init__ parameter weight produces wrong results #8

Open
damonmaria opened this issue Oct 23, 2014 · 1 comment
Assignees

Comments

@damonmaria
Copy link

No matter what values I pass in for Orange.classification.svm.SVMLearner weight I get the same confusion matrix out.

I have 5 classes. And have tried weight being proportional to C (as per LibSVM) and so passed:
weight=[1.0, 1.0, 1.0, 1.0, 1.0]

And weight being absolute (same as the C value I use):
weight=[8.0, 8.0, 8.0, 8.0, 8.0]

Those values and all other values I've tried produce the same confusion matrix which is wildly different from the confusion matrix I get without passing weight values. So I don't think this is working.

I have tried to trace the code but I end up at set_weights in what I think is a compiled C .so file.

@ales-erjavec ales-erjavec self-assigned this Oct 28, 2014
@ales-erjavec
Copy link
Contributor

The code in orange which passes the weights to libsvm was completely broken (the weight parameter was also documented wrong). I made some fixes in 2db50d0 and 2db50d0, but it still needs to be tested.

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