A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/flying-sheep/knn.covertree below:

flying-sheep/knn.covertree: A not-too-fast but accurate kNN implementation supporting multiple distance measures

A package for precise approximative nearest neighbor search in more than just euclidean space.

Its only exported function find_knn computes the k nearest neighbors of the rows of the query matrix in the data matrix. If no query matrix is passed, the nearest neighbors for all rows in the data will be returned (i.e. data will be used as query).

find_knn(
  data, k, ...,
  query = NULL,
  distance = c("euclidean", "cosine", "rankcor"),
  sym = TRUE)

The result will be a list containing

This package was separated from destiny as it might prove helpful in other contexts. It provides more distance metrics than FNN and is more precise than RcppHNSW, but slower than both.

If anyone knows a faster and similarly precise kNN search in cosine (=rank correlation) space, please tell me!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4