Skip to content

Commit

Permalink
handle allocation of hdscan in CLUSTERINGS in case of exceptional import
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Dec 27, 2023
1 parent a79b86d commit 3d34029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_clusterings/test_clusterings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
from spectral_clustering import spectral_clustering
from gaussian_mixture.gaussian_mixture import gaussian_mixture
from hierarchical_clustering.agglomerative_clustering import agglomerative_clustering
from pymilo.pymilo_param import SKLEARN_CLUSTERING_TABLE, NOT_SUPPORTED

CLUSTERINGS = {
"KMEANS": [kmeans],
"AFFINITY_PROPAGATION": [affinity_propagation],
"MEAN_SHIFT": [mean_shift],
"DBSCAN": [dbscan, hdbscan],
"DBSCAN": [dbscan, hdbscan if SKLEARN_CLUSTERING_TABLE["HDBSCAN"] != NOT_SUPPORTED else (None,"HDBSCAN")],
"OPTICS": [optics],
"SPECTRAL_CLUSTERING": [spectral_clustering],
"GAUSSIAN_MIXTURE": [gaussian_mixture],
Expand Down

0 comments on commit 3d34029

Please sign in to comment.