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

@zachmayer zachmayer commented Jun 16, 2016

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 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

@zachmayer zachmayer commented Jun 16, 2016

@dashaub Good to know!

@dselivanov
Copy link

@dselivanov dselivanov commented Jun 21, 2016

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 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

@zachmayer zachmayer commented Jul 26, 2016

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 added a commit that referenced this issue Jul 26, 2016
@topepo
Copy link
Owner

@topepo topepo commented Jul 26, 2016

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

@zachmayer
Copy link
Collaborator Author

@zachmayer zachmayer commented Jul 26, 2016

Yup!

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

@topepo 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.