Implement libSVM adaptation in sklearn #19584
-
Hi Everyone, For my Masters thesis I am comparing a number of ordinal regression techniques. Here I found an adaptation of the libSVM library to include SVORIM, a support vector machine for ordinal regression with implicit constraints. The code for this adaptation can be downloaded here. Since I only have programming experience in python I am not sure how I could/should run this code. The sklearn svm module calls libSVM and enables the use of these models within python. 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? If it is not possible to incorporate this into python, how can I then run this code in another way? I hope to hear from you and thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ThomasPel1, Thanks for your pointers.
Yes, you can. You should be able to modify scikit-learn to use this adaptation by:
Those are general guidelines, but when modifying one would surely need more inspection (that I haven't had time to go through yet). Here are some relevant sections from the Cython's docs: |
Beta Was this translation helpful? Give feedback.
Hi @ThomasPel1,
Thanks for your pointers.
Yes, you can.
libSVM
is bound to thesvm
module using Cython.You should be able to modify scikit-learn to use this adaptation by:
libsvm
C/C++ code base.s…