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

Add a warning to prefer LinearSVM over SVM(kernel='linear') #4382

Merged

Conversation

achirkin
Copy link
Contributor

@achirkin achirkin commented Nov 18, 2021

Suggest using LinearSVM when the user chooses to use the linear kernel in SVM. The reason is that LinearSVM uses a specialized faster solver.

Closes #1664
Also partially addresses #2857

@achirkin achirkin requested a review from a team as a code owner November 18, 2021 10:00
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Nov 18, 2021
@achirkin achirkin added 3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function non-breaking Non-breaking change and removed Cython / Python Cython or Python issue labels Nov 18, 2021
@achirkin achirkin requested a review from tfeher November 18, 2021 10:01
@achirkin
Copy link
Contributor Author

NB: need to check if the warning is not disturbingly printed many times in case of multiclass training / parameter search.

@achirkin achirkin added 2 - In Progress Currenty a work in progress and removed 3 - Ready for Review Ready for review by team labels Nov 23, 2021
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Nov 26, 2021
@achirkin achirkin added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currenty a work in progress labels Nov 26, 2021
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @achirkin for the PR, it looks good to me!

@cjnolet
Copy link
Member

cjnolet commented Dec 2, 2021

rerun tests

2 similar comments
@cjnolet
Copy link
Member

cjnolet commented Dec 3, 2021

rerun tests

@cjnolet
Copy link
Member

cjnolet commented Dec 4, 2021

rerun tests

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.02@5aefeb1). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-22.02    #4382   +/-   ##
===============================================
  Coverage                ?   85.73%           
===============================================
  Files                   ?      236           
  Lines                   ?    19314           
  Branches                ?        0           
===============================================
  Hits                    ?    16558           
  Misses                  ?     2756           
  Partials                ?        0           
Flag Coverage Δ
dask 46.52% <0.00%> (?)
non-dask 78.62% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5aefeb1...9e19185. Read the comment docs.

@dantegd
Copy link
Member

dantegd commented Dec 4, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit c10ebf1 into rapidsai:branch-22.02 Dec 4, 2021
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
…#4382)

Suggest using LinearSVM when the user chooses to use the linear kernel in SVM. The reason is that LinearSVM uses a specialized faster solver.

Closes rapidsai#1664
Also partially addresses rapidsai#2857

Authors:
  - Artem M. Chirkin (https://github.com/achirkin)

Approvers:
  - Tamas Bela Feher (https://github.com/tfeher)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#4382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SVR performance problem with linear model
5 participants