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

[ENH] Enable LinearSVC (prob combined with Nystroem) for SVMSMOTE #1107

Open
portchester1989 opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@portchester1989
Copy link

<--
If you want to propose a new algorithm, please refer first to the scikit-learn inclusion criterion:
https://scikit-learn.org/stable/faq.html#what-are-the-inclusion-criteria-for-new-algorithms
-->

Is your feature request related to a problem? Please describe

The time complexity of SVC on scikit-learn, I believe is O(n^2) - so therefore it takes forever to converge if a dataset is larger than 100k. The LinearSVC is more efficient to converge while it does not have _support attribute exposed, but there is a workaround I believe

Describe the solution you'd like

Allow for LinearSVC (or combined with Nystroem) to be accepted as an SVM estimator by obtaining support indices in the way described above (i.e. using decision_function)

Describe alternatives you've considered

in case data size is too big, undersample the majority class

Additional context

It has taken 10+ hours(and then timed out on VertexAI) when I tried to fit SVMSMOTE

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

1 participant