#api-bindings

libsvm

High level Rust bindings for libsvm

6 releases

0.4.0 Feb 28, 2022
0.2.1 Apr 24, 2020
0.1.2 Apr 20, 2020

#365 in Machine learning

Download history 13/week @ 2023-10-31 12/week @ 2023-11-07 5/week @ 2023-11-14 10/week @ 2023-11-21 23/week @ 2023-11-28 8/week @ 2023-12-05 10/week @ 2023-12-12 4/week @ 2023-12-19 15/week @ 2023-12-26 8/week @ 2024-01-02 4/week @ 2024-01-09 4/week @ 2024-01-16 13/week @ 2024-01-23 15/week @ 2024-01-30 4/week @ 2024-02-06 29/week @ 2024-02-13

62 downloads per month

Custom license

39KB
859 lines

libsvm Bindings for Rust

The crate provides high level API for cjlin1's libsvm, which is based on Yu Wei Wu's libsvm-sys.

Usage

Add this crate your Cargo.toml.

[dependencies]
libsvm = "0.3"

Cargo Features

  • full: Enable most available cargo features except nightly.
  • nalgebra: Enable conversions from nalgebra types
  • ndarray: Enable conversions from ndarray types
  • nightly: Enable nightly features, especially for conversions from array of arbitrary size.

For example, if you would like to enable nalgebra support, add the feature in your Cargo.toml.

libsvm = { version = "0.3", features = ["with-nalgebra"] }

License

The crate is licensed under BSD-3-clause. You can see the license file included in the repository.

The crate links the work from Chih-Chung Chang and Chih-Jen Lin. The upstream libsvm license can be found in licenses directory. Here is the citation text to respect their contribution.

Chih-Chung Chang and Chih-Jen Lin, LIBSVM : a library for support
vector machines. ACM Transactions on Intelligent Systems and
Technology, 2:27:1--27:27, 2011. Software available at
http://www.csie.ntu.edu.tw/~cjlin/libsvm

Dependencies

~2MB
~49K SLoC