3
$\begingroup$

I'm looking for a Python package for a LS-SVM or a way to tune a normal SVM from scikit-learn to a Least-Squares Support Vector Machine for a classification problem.

The goal of a SVM is to maximize the margin while softly penalizing points that lie on the wrong side of the margin boundary. The function that is used is a Quadratic Programming (OP) problem.

A LS-SVM which defines a least squares cost function and replaces the inequality contraints with equality constraints and is a Linear Programming (LP) problem.

Wikipedia: LS-VSM

Does someone ever tried something like that and can help me?

$\endgroup$
2
$\begingroup$

There is a package called FukuML.

In their description (Version 0.4.1) they write:

  • Support Vector Machine
    • Primal Hard Margin Support Vector Machine Binary Classification Learning Algorithm
    • Dual Hard Margin Support Vector Machine Binary Classification Learning Algorithm
    • Polynomial Kernel Support Vector Machine Binary Classification Learning Algorithm
    • Gaussian Kernel Support Vector Machine Binary Classification Learning Algorithm
    • Soft Polynomial Kernel Support Vector Machine Binary Classification Learning Algorithm
    • Soft Gaussian Kernel Support Vector Machine Binary Classification Learning Algorithm
    • Polynomial Kernel Support Vector Machine Multi Classification Learning Algorithm
    • Gaussian Kernel Support Vector Machine Multi Classification Learning Algorithm
    • Soft Polynomial Kernel Support Vector Machine Multi Classification Learning Algorithm
    • Soft Gaussian Kernel Support Vector Machine Multi Classification Learning Algorithm
    • Probabilistic Support Vector Machine Learning Algorithm
    • Least Squares Support Vector Machine Binary Classification Learning Algorithm
    • Least Squares Support Vector Machine Multi Classification Learning Algorithm
    • Support Vector Regression Learning Algorithm

As you can see, they have the feature you're after.

enter image description here

$\endgroup$
  • $\begingroup$ But does it have a least squares support vector machine regression algorithm? $\endgroup$ – Hans Dec 7 '18 at 22:22
  • $\begingroup$ Yes, it does. Look at the last item in the list. $\endgroup$ – Royi Jun 26 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.