Implementing logreduce nearest neighbors model in Rust
This article is a follow-up on the previous post about Improving logreduce with Rust. With the new tokenizer in place, the next step is to implement the nearest neighbors model.
In this post you will learn the following about the core algorithm of logreduce:
- Why vectorization is necessary.
- Cosine similarity …