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

Model request: liblinear linear SVM #441

Closed
zachmayer opened this issue Jun 16, 2016 · 8 comments
Closed

Model request: liblinear linear SVM #441

zachmayer opened this issue Jun 16, 2016 · 8 comments

Comments

@zachmayer
Copy link
Collaborator

I expect it to scale better than kernlab and e1071.:

https://cran.r-project.org/web/packages/LiblineaR/LiblineaR.pdf

We can probably just implement the svm classifier / regressor, as glmnet already does a great job for non-svm linear models.

@dashaub
Copy link
Contributor

dashaub commented Jun 16, 2016

@zachmayer The "RSofia" package also has a fast implementation. It no longer appears maintained, however.

@zachmayer
Copy link
Collaborator Author

@dashaub Good to know!

@dselivanov
Copy link

From my experience on large datasets LiblineaR significantly faster than glmnet. But when I tried it, it was a little bit buggy - destroyed sparsity , etc.

@topepo
Copy link
Owner

topepo commented Jul 26, 2016

Any particular model(s) that you are interested in? From ?LiblineaR:

for multi-class classification
• 0 – L2-regularized logistic regression (primal)
• 1 – L2-regularized L2-loss support vector classification (dual)
• 2 – L2-regularized L2-loss support vector classification (primal)
• 3 – L2-regularized L1-loss support vector classification (dual)
• 4 – support vector classification by Crammer and Singer
• 5 – L1-regularized L2-loss support vector classification
• 6 – L1-regularized logistic regression
• 7 – L2-regularized logistic regression (dual)
for regression
• 11 – L2-regularized L2-loss support vector regression (primal)
• 12 – L2-regularized L2-loss support vector regression (dual)
• 13 – L2-regularized L1-loss support vector regression (dual)

@zachmayer
Copy link
Collaborator Author

for multi-class classification:
• 1 – L2-regularized L2-loss support vector classification (dual)
• 2 – L2-regularized L2-loss support vector classification (primal)
• 3 – L2-regularized L1-loss support vector classification (dual)

for regression
• 11 – L2-regularized L2-loss support vector regression (primal)
• 12 – L2-regularized L2-loss support vector regression (dual)
• 13 – L2-regularized L1-loss support vector regression (dual)

@topepo
Copy link
Owner

topepo commented Jul 26, 2016

I just checked in the models for the dual formulation. Would that be sufficient?

@zachmayer
Copy link
Collaborator Author

Yup!

topepo added a commit that referenced this issue Jul 26, 2016
@topepo
Copy link
Owner

topepo commented Aug 5, 2016

on CRAN

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

4 participants