Skip to main content

Crate libsvm_rs

Crate libsvm_rs 

Source
Expand description

§libsvm-rs

A pure Rust reimplementation of LIBSVM, targeting numerical equivalence and model-file compatibility with the original C++ library.

§Status

Phases 0–3 complete: types, I/O, kernels, cache, prediction, and full SMO solver. Training works for all 5 SVM types (C-SVC, ν-SVC, one-class, ε-SVR, ν-SVR). See train::svm_train for training and predict::predict for inference.

§Feature Flags

  • rayon — Enable parallel cross-validation (off by default).

Re-exports§

pub use error::SvmError;
pub use types::*;

Modules§

cache
LRU kernel cache matching the original LIBSVM.
error
io
I/O routines for LIBSVM problem and model files.
kernel
Kernel functions matching the original LIBSVM.
predict
Prediction functions matching the original LIBSVM.
qmatrix
Q matrix implementations for the SMO solver.
solver
SMO solver for the SVM dual problem.
train
SVM training pipeline.
types