Skip to content

Implement libSVM adaptation in sklearn #19584

Answered by jjerphan
ThomasPel1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ThomasPel1,

Thanks for your pointers.

Can I download the sklearn svm code and change parts of it to incorporate SVORIM and also be able to use it? If so, how should I approach this?

Yes, you can. libSVM is bound to the svm module using Cython.

You should be able to modify scikit-learn to use this adaptation by:

  • changing the vendored libsvm C/C++ code base.
  • adapting the Cython headers (for any parameters that you want to expose from the C/C++ interface)
  • adapting the Cython sources (here and potentially there) (for any parameters that you want to expose)
  • adapting the Python internal calls to use any new parameters that you want to expose from the Cython interface. This likely sits in s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lesteve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants