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
[QUESTION] SVC's default value for decision_function_shape
#3
Comments
Hi @liganega , Thanks for your feedback. Are you referring to the 2nd edition? Because there's already the following explanation in the 3rd edition:
Indeed, under the hood, I think this is a confusing part of Scikit-Learn's API. Many people were confused when first reading the docs (myself included): it really looks like the class uses OvR by default, but it doesn't. It still trains 45 models, and it still makes 45 predictions, it's just the way these results are presented. More details here. Hope this helps. |
The confusion comes from the number "10". The number "10" in the sentence below does NOT correspond to the "10" binary classification models which would be trained if "OvR" method should really be applied. It's just the number of classes. And the 10 scores are aggregates of the 45 scores leared from 45 binary classification models based on the "OvO" method.
On the other hand, when the following hyperparameter is set, then 45 scores will be returned.
So IMHO, the confusion can easily arise. Anyway, it is a subtle point, but well understood now. Thank you. |
According to sklearn's document, it seems that the hyperparmeter
decision_function_shape
for SVC model is"ovr"
, not"ovo"
. But in the book,"ovo"
is mentioned and explained in the section about Multiclass classification, Chapter 3.On the other hand, it is written in the jupyter notebook as follows:
This should be also explained in the book.
The text was updated successfully, but these errors were encountered: