5 unstable releases

0.7.0 Oct 16, 2023
0.6.1 Dec 3, 2022
0.6.0 Jun 15, 2022
0.5.1 Mar 1, 2022
0.5.0 Oct 21, 2021

#535 in Machine learning

Download history 3324/week @ 2024-01-10 3595/week @ 2024-01-17 2955/week @ 2024-01-24 3371/week @ 2024-01-31 3116/week @ 2024-02-07 2921/week @ 2024-02-14 3064/week @ 2024-02-21 4145/week @ 2024-02-28 4776/week @ 2024-03-06 4370/week @ 2024-03-13 3508/week @ 2024-03-20 3784/week @ 2024-03-27 3310/week @ 2024-04-03 5388/week @ 2024-04-10 4485/week @ 2024-04-17 4643/week @ 2024-04-24

18,601 downloads per month
Used in 11 crates (3 directly)

MIT/Apache

240KB
4.5K SLoC

Nearest Neighbor

linfa-nn provides a pure Rust implementation of nearest neighbor algorithms.

The Big Picture

linfa-nn 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.

Nearest neighbor search (NNS), as a form of proximity search, is the optimization problem of finding the point in a given set that is closest (or most similar) to a given point. Closeness is typically expressed in terms of a dissimilarity function: the less similar the objects, the larger the function values.

Current State

linfa-nn currently provides the following implementations: - linear - balltree - KDTree

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

~4.5MB
~92K SLoC