Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add multiclass support to hinge_loss #3451

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

Closed
arjoly opened this issue Jul 20, 2014 · 6 comments
Closed

Add multiclass support to hinge_loss #3451

arjoly opened this issue Jul 20, 2014 · 6 comments
Labels
Easy Well-defined and straightforward way to resolve Enhancement

Comments

@arjoly
Copy link
Member

arjoly commented Jul 20, 2014

The hinge_loss metrics could be improved by adding support multiclass hinge loss. For more information, see wikipedia and the narrative documentation.

This would require to enhance the current code, write tests and modify the documentation accordingly.

@mblondel
Copy link
Member

There are several multiclass variants of the hinge loss. The one in the article you link is the variant by Crammer & Singer. We should either accept a parameter to let the user choose or use one function per variant.

@mblondel
Copy link
Member

We can also implement the "one-vs-rest" loss, which is simply to sum the hinge losses of each binary classification problem.

@arjoly
Copy link
Member Author

arjoly commented Jul 22, 2014

Thanks @mblondel for the precision.

@SaurabhJha
Copy link
Contributor

I am new to Scikit-learn. I am trying to fix this issue.

@SaurabhJha
Copy link
Contributor

Hi, I am reading this paper
http://www.ttic.edu/sigml/symposium2011/papers/Moore+DeNero_Regularization.pdf
in order to understand the notation of multi class hinge loss equation at wikipedia(w subscript y and w subscript t). Can anyone please confirm if w subscript f and l are functional margins? Are they product of w evaulated at some feature and the corresponding product?

Also, is there any way to find w from est?

@MechCoder
Copy link
Member

Fixed by #3607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Well-defined and straightforward way to resolve Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants