Skip to content

Commit acf848f

Browse files
authored
Merge pull request #2908 from rat-h/main
hdbscan is awfully slow on CPU side. I added hdbscan-gpu option to us…
2 parents 2edc731 + 5226fd8 commit acf848f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/spikeinterface/sorters/internal/simplesorter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose):
185185

186186
out = hdbscan.hdbscan(features_flat, **clust_params)
187187
peak_labels = out[0]
188+
elif clust_method == "hdbscan-gpu":
189+
from cuml.cluster import HDBSCAN as hdbscan
190+
191+
model = hdbscan(**clust_params).fit(features_flat)
192+
peak_labels = model.labels_.copy()
188193
elif clust_method in ("kmeans"):
189194
from sklearn.cluster import MiniBatchKMeans
190195

0 commit comments

Comments
 (0)