Expand description
Re-export and PaCMAP-facing adapters for flow_knn.
Structs§
- KnnGraph
- Portable k-nearest-neighbour graph: per-point indices and distances only.
- Neighbor
List - Neighbours of a single query point.
- Perf
Record - One timed cell in the (n, d, method) performance matrix.
- Recommend
Opts - Preferences that bias automatic method choice.
Functions§
- builtin_
matrix - Built-in snapshot used when JSONL parse fails.
- compute_
knn - Compute k nearest neighbours for all n points in
data(n×d row-major). - load_
matrix - Load matrix: prefer
pathif readable, else the shipped JSONL /builtin_matrix. - parse_
matrix_ jsonl - Parse JSONL text into records (skips blank / comment lines).
- read_
knn_ graph - Read a
KnnGraphpreviously written bywrite_knn_graph. - recommend_
method - Recommend a
KnnMethodfornpoints of dimensiond. - recommend_
method_ with_ matrix - Same as
recommend_methodbut with an explicit matrix (tests / custom datasets). - validate_
knn_ for_ pacmap - Validate a graph for PaCMAP, mapping
flow_knn::KnnErrorintoPaCMAPError. - write_
knn_ graph - Write a
KnnGraphtopath(creates/overwrites the file).