CLAM: Clustered Learning of Approximate Manifolds (v0.22.3)
CLAM is a Rust/Python library for learning approximate manifolds from data. It is designed to be fast, memory-efficient, easy to use, and scalable for big data applications.
CLAM provides utilities for fast search (CAKES) and anomaly detection (CHAODA).
As of writing this document, the project is still in a pre-1.0 state. This means that the API is not yet stable and breaking changes may occur frequently.
Installation
> python3 -m pip install "abd_clam==0.22.3"
Usage
from abd_clam.search import CAKES
from abd_clam.utils import synthetic_data
# Get the data.
data, _ = synthetic_data.bullseye()
# data is a numpy.ndarray in this case but it could just as easily be a
# numpy.memmap if your data do fit in RAM. We used numpy memmaps for the
# research, though they impose file-IO costs.
model = CAKES(data, 'euclidean')
# The CAKES class provides the functionality described in our
# [CHESS paper](https://arxiv.org/abs/1908.08551).
model.build(max_depth=50)
# Build the search tree to depth of 50.
# This method can be called again with a higher depth, if needed.
query, radius, k = data[0], 0.5, 10
rnn_results = model.rnn_search(query, radius)
# This is how we perform ranged nearest neighbors search with radius 0.5 around
# the query.
knn_results = model.knn_search(query, k)
# This is how we perform k-nearest neighbors search for the 10 nearest neighbors
# of the query.
# The results are returned as a dictionary whose keys are indices into the data
# array and whose values are the distance to the query.
License
Citation
TODO
Metadata
Release files for abd-clam 0.22.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abd_clam-0.22.3.tar.gz | 36.9 kB | Without provenance | Details for abd_clam-0.22.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abd_clam-0.22.3-py3-none-any.whl | Python 3 | none | any | Details for abd_clam-0.22.3-py3-none-any.whl |
Total release size: 82.9 kB
Release files / abd_clam-0.22.3.tar.gz
| Download URL | abd_clam-0.22.3.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
175cc7cde8774d2373b9ab7ffeac876d366a90505c104dcb2eca48465f11b5f4
|
|
BLAKE2b-256 checksum How to use checksums |
bc5d48e5135fc44454a495025d0137639bdc9c9fe8942f3c818b85d200a45d85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1012-azure
|
Release files / abd_clam-0.22.3-py3-none-any.whl
| Download URL | abd_clam-0.22.3-py3-none-any.whl |
|---|---|
| Size | 46.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be3c479db9f951e6133ed48dfa486e23d3d600a55893461afb50a2586dca66e1
|
|
BLAKE2b-256 checksum How to use checksums |
d812960ec1e2d11f99d2829d91d66b01c8bee4586ea12b725a99391c4e445c56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1012-azure
|
Security for abd-clam 0.22.3
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.