Skip to main content

Cover Tree

This is a Python implementation of cover trees, a data structure for finding nearest neighbors in a general metric space (e.g., a 3D box with periodic boundary conditions).

Updated for Python 3.7 from Patrick Varilly's code.

The implementation here owes a great deal to PyCoverTree, by Thomas Kollar, Nil Geisweiller, Emanuele Olivetti.

The API follows that of Anne M. Archibald's KD-tree implementation for scipy; the default metric has been set to euclidean distance, so the CoverTree class can be used exactly as a drop in replacement for scipy.spatial.KDTree.

References

Cover trees are described in two papers, for which PDF copies are included in the references directory:

A. Beygelzimer, S. Kakade, & J. Langford (2006) Cover Trees for Nearest Neighbor, 23rd International Conference on Machine Learning

D. R. Karger & M. Ruhl (2002) Finding Nearest Neighbors in Growth-restricted Metrics, 34th Symposium on the Theory of Computing.

(both originate from this page)

Metadata

Release files for covertree 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for covertree 1.0.0
File Size Uploaded Provenance Actions
covertree-1.0.0.tar.gz 12.0 kB Without provenance Details for covertree-1.0.0.tar.gz

Release files / covertree-1.0.0.tar.gz

Download URL covertree-1.0.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6e5c8bbaab92c879122592251a753dbd3cf48dcee2eaaf20ecc07449edeeb969
BLAKE2b-256 checksum
How to use checksums
de2caf41568ed3fe4dd297b901b74eb55f2259f9316f0ccb15e6372514e9521b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.13

Security for covertree 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page