thundersvm icon indicating copy to clipboard operation
thundersvm copied to clipboard

Will support squared-hinged like in sk-learn?

Open b04505009 opened this issue 6 years ago • 3 comments

As title, Will thundersvm support squared-hinged like in sk-learn? Thanks!

b04505009 avatar Aug 23 '18 18:08 b04505009

Thanks for the reminding us!

We plan to support this loss in the library. However, we haven't got many requests for this functionality. Our current primary task is supporting structured output.

Perhaps, we can work on this loss next. Could you share some insight or applications why you think squared hinge loss is more appealing than hinge loss? This would help us prioritize the tasks.

zeyiwen avatar Aug 24 '18 02:08 zeyiwen

LinearSVC in sk-learn use squared-hinged as default.

Here said that squared-hinge is more likely a regressor while that of hinge is more likely a classifier. However, in my case of classification, squared-hinge is acting a little better.

Maybe the best result for me is to run the LinearSVC on GPU. LinearSVC use different library (LibLinear) from SVC's library (LibSVM), which is optimized for linear case. Though LinearSVC is much faster than SVM, it still becomes slow when choosing larger C. Moving this library on GPU may be helpful.

b04505009 avatar Sep 05 '18 15:09 b04505009

Thank you for the feedback! The content in the post is not totally correct. The author was confused between squared loss and squared hinge loss.

You have mentioned a very good point. We should support LinearSVC which will be a GPU version for LIBLINEAR. We will definitely support this, but it will take some time. Please stay tuned!

zeyiwen avatar Sep 06 '18 01:09 zeyiwen