spamosaic.MNN.nn
- spamosaic.MNN.nn(ds1, ds2, names1, names2, knn=50, metric_p=2)[source]
Exact nearest neighbor search using scikit-learn.
- Parameters:
ds1 (np.ndarray) – Query dataset.
ds2 (np.ndarray) – Reference dataset.
names1 (list of str) – Identifiers for ds1.
names2 (list of str) – Identifiers for ds2.
knn (int) – Number of nearest neighbors.
metric_p (int) – Minkowski distance parameter (e.g., 2 for Euclidean).
- Returns:
Set of matched nearest neighbor pairs.
- Return type:
Set[Tuple[str, str]]