7 unstable releases

0.7.1 Feb 1, 2025
0.7.0 Oct 16, 2023
0.6.1 Dec 3, 2022
0.6.0 Jun 15, 2022
0.4.0 Apr 28, 2021

#1093 in Machine learning

Download history 364/week @ 2024-12-13 227/week @ 2024-12-20 172/week @ 2024-12-27 119/week @ 2025-01-03 55/week @ 2025-01-10 141/week @ 2025-01-17 173/week @ 2025-01-24 228/week @ 2025-01-31 205/week @ 2025-02-07 157/week @ 2025-02-14 106/week @ 2025-02-21 160/week @ 2025-02-28 209/week @ 2025-03-07 324/week @ 2025-03-14 220/week @ 2025-03-21 172/week @ 2025-03-28

940 downloads per month
Used in 31 crates (3 directly)

MIT/Apache

315KB
6K SLoC

Preprocessing

The Big Picture

linfa-preprocessing is a crate in the linfa ecosystem, an effort to create a toolkit for classical Machine Learning implemented in pure Rust, akin to Python's scikit-learn.

Current state

linfa-preprocessing provides a pure Rust implementation of:

  • Standard scaling
  • Min-max scaling
  • Max Abs Scaling
  • Normalization
  • Count vectorization
  • TfIdf vectorization
  • Whitening

Examples

There are various usage examples in the examples/ directory. To run, use:

$ cargo run --release --example count_vectorization
$ cargo run --release --example tfidf_vectorization
$ cargo run --release --example scaling
$ cargo run --release --example whitening

BLAS/Lapack backend

See this section to enable an external BLAS/LAPACK backend.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

Dependencies

~10–21MB
~340K SLoC