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

#599 in Machine learning

Download history 66/week @ 2024-11-03 166/week @ 2024-11-10 332/week @ 2024-11-17 573/week @ 2024-11-24 311/week @ 2024-12-01 330/week @ 2024-12-08 306/week @ 2024-12-15 185/week @ 2024-12-22 185/week @ 2024-12-29 90/week @ 2025-01-05 85/week @ 2025-01-12 123/week @ 2025-01-19 239/week @ 2025-01-26 201/week @ 2025-02-02 187/week @ 2025-02-09 50/week @ 2025-02-16

682 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