-
-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
CalibratedClassifierCV in conjunction with SVC and multiclass results in index out of bounds error #4634
Comments
please share a full gist so we can reproduce
|
|
I can reproduce on master. |
This is caused by the weird OvO decision function of SVC. I think we should make SVC return a decision function of proper shape. Maybe add an "aggregate_decision_function=None`` and change the default from false to true in a deprecation cycle? |
As I said on SO, you can work around this by using OneVsRestClassifier(SVC()) for now. |
Thanks |
@amueller You had expressed the same concern at #3891 (the OvO decision function PR)... Should I make the SVC's decision function's shape consistent as yourself and @mblondel had wanted... :) |
yep!! sorry didn't know this was a "moderate" level issue ;) |
I think you should have no problem fixing it, still I think there is enough work in your existing PRs ;) |
Fixed via #4714. You can pass |
Reported this on StackOverflow:
http://stackoverflow.com/questions/29873981/error-with-sklearn-calibratedclassifiercv-and-svm
This is not an issue with any other classifiers I have used, including
RandomForestClassifier
andLogisticRegression
.The text was updated successfully, but these errors were encountered: