LIBSVM provides training, prediction, and scaling tools for support vector classification, regression, and one-class models.
Overview
LIBSVM is an integrated library for support vector classification and regression. It implements C-SVM and nu-SVM classification, one-class SVM, and epsilon-SVM and nu-SVM regression, with support for multi-class problems.
Command-line programs train models, predict labels or values on test data, and scale feature files. An automatic model selection helper in the tools directory can run scaling and parameter search for beginners. Kernel options include linear, polynomial, RBF, sigmoid, and precomputed kernel matrices.
The C++ source can be linked from application code through the svm.h API, with examples for training and prediction workflows. Bindings and ports are bundled or documented for Java, Python, MATLAB, and other languages.
A small graphical toy program demonstrates separating points in the plane. Companion tools cover format checking, subsampling, and grid search for cross-validation accuracy. The package also ships Windows binaries and scaling utilities for preparing data.
Key features
- C-SVM and nu-SVM classification
- Epsilon and nu-SVM regression
- One-class SVM
- Multiple kernel functions
- svm-train and svm-predict CLI
- Data scaling utility
- C/C++ library API
- Cross-validation and model selection tools
Use cases
- Binary and multi-class classification
- Regression on numeric targets
- Anomaly detection with one-class SVM
- Embedding SVM in custom programs