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
data, _ = synthetic_data.bullseye()
model = CAKES(data, 'euclidean')
model.build(max_depth=50)
query, radius, k = data[0], 0.5, 10
rnn_results = model.rnn_search(query, radius)
knn_results = model.knn_search(query, k)
License
MIT
Citation
TODO