TL;DR
GriSPy is a Python package that offers a fast, grid-based method for fixed-radius nearest neighbor searches in high-dimensional data, supporting various metrics and large datasets.
Contribution
It introduces a new regular grid search algorithm optimized for quick fixed-radius nearest neighbor queries in Python, with support for multiple metrics and custom functions.
Findings
Provides three query types: bubble, shell, nth-nearest
Supports Euclidean, Haversine, and Vincenty distance metrics
Efficient for large datasets where brute-force is impractical
Abstract
We present a new regular grid search algorithm for quick fixed-radius nearest-neighbor lookup developed in Python. This module indexes a set of k-dimensional points in a regular grid, with optional periodic conditions, providing a fast approach for nearest neighbors queries. In this first installment we provide three types of queries: , and the ; as well as three different metrics of interest in astronomy: the and two distance functions in spherical coordinates of varying precision, and ; and the possibility of providing a custom distance function. This package results particularly useful for large datasets where a brute-force search turns impractical.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
