Skip to main content

libsvm_rs/
lib.rs

1//! # libsvm-rs
2//!
3//! A pure Rust reimplementation of [LIBSVM](https://github.com/cjlin1/libsvm),
4//! targeting numerical equivalence and model-file compatibility with the
5//! original C++ library.
6//!
7//! ## Status
8//!
9//! **Phases 0–3 complete**: types, I/O, kernels, cache, prediction, and full
10//! SMO solver. Training works for all 5 SVM types (C-SVC, ν-SVC, one-class,
11//! ε-SVR, ν-SVR). See [`train::svm_train`] for training and
12//! [`predict::predict`] for inference.
13//!
14//! ## Feature Flags
15//!
16//! - `rayon` — Enable parallel cross-validation (off by default).
17
18pub mod types;
19pub mod error;
20pub mod io;
21pub mod kernel;
22pub mod cache;
23pub mod qmatrix;
24pub mod solver;
25pub mod train;
26
27pub mod predict;
28
29pub use error::SvmError;
30pub use types::*;