Kiran Eiden f93286ffbd Fix bug in cover tree KNN algorithm
Prior to this change, the find function implementation for the
CoverTree class could have potentially returned the wrong result
in cases where there were multiple points in the dataset
equidistant from p. For example, the current test passed for k=3
but failed to produce the correct result for k=4 (it claimed that
3, 4, 5, and 7 were the 4 closest points to 5 in the dataset
rather than 3, 4, 5, and 6). Sorting the neighbors vector before
collecting the first k values from it resolved this issue.
2022-01-02 20:05:39 -08:00
2020-12-17 19:11:47 -08:00
2022-01-02 20:05:39 -08:00
2020-08-27 11:37:14 -07:00
2021-04-28 16:58:15 -04:00
2019-05-07 22:14:51 -07:00
2020-09-25 16:06:36 -07:00

SmartCore

User guide | API | Examples


The Most Advanced Machine Learning Library In Rust.


Description
A comprehensive library for machine learning and numerical computing. Apply Machine Learning with Rust leveraging first principles.
Readme Apache-2.0 2.9 MiB
Languages
Rust 100%