From 1807b3ac4e8839604989500447aa785e85729e7f Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Tue, 21 Apr 2026 22:13:37 -0600 Subject: [PATCH] add pacmap.LocalMAP to the reducer catalogue --- app/web/main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/web/main.py b/app/web/main.py index fc5702b..212585e 100644 --- a/app/web/main.py +++ b/app/web/main.py @@ -261,6 +261,24 @@ REDUCERS: Dict[str, Dict[str, Any]] = { ("apply_pca", "bool", True, None, None), ], }, + "pacmap.LocalMAP": { + "pkg": "pacmap", + "label": "LocalMAP", + "blurb": "PaCMAP variant with a low-distance threshold; sharper local structure.", + "key": [ + ("n_components", "int", 2, None, "Locked."), + ("n_neighbors", "int", 10, None, None), + ("MN_ratio", "float", 0.5, None, None), + ("FP_ratio", "float", 2.0, None, None), + ("random_state", "int", 42, None, None), + ], + "advanced": [ + ("lr", "float", 1.0, None, None), + ("num_iters", "int", 450, None, None), + ("apply_pca", "bool", True, None, None), + ("low_dist_thres", "float", 10.0, None, None), + ], + }, "trimap.TRIMAP": { "pkg": "trimap", "label": "TriMap",