]> code.communitydata.science - cdsc_reddit.git/blobdiff - clustering/hdbscan_clustering_lsi.py
Merge remote-tracking branch 'refs/remotes/origin/excise_reindex' into excise_reindex
[cdsc_reddit.git] / clustering / hdbscan_clustering_lsi.py
index cbd44bde8a995f2e2f0b0e9066f0d06331de6fa4..a4c1efd5a2192c0acbcd3ab48920acf5680f7f75 100644 (file)
@@ -67,7 +67,7 @@ class _hdbscan_lsi_grid_sweep(grid_sweep):
         s += f"_lsi-{self.lsi_dim}"
         return s
 
-def run_hdbscan_lsi_grid_sweep(savefile, inpath, outpath,  min_cluster_sizes=[2], min_samples=[1], cluster_selection_epsilons=[0], cluster_selection_methods=['eom'],lsi_dimensions='all'):
+def run_hdbscan_lsi_grid_sweep(savefile, inpath, outpath,  min_cluster_sizes=[2], min_samples=[1], cluster_selection_epsilons=[0], cluster_selection_methods=[1],lsi_dimensions='all'):
     """Run hdbscan clustering once or more with different parameters.
     
     Usage:
@@ -90,8 +90,8 @@ def run_hdbscan_lsi_grid_sweep(savefile, inpath, outpath,  min_cluster_sizes=[2]
                                  list(map(int,min_cluster_sizes)),
                                  list(map(int,min_samples)),
                                  list(map(float,cluster_selection_epsilons)),
-                                 cluster_selection_methods
-                                 )
+                                 cluster_selection_methods)
+                                 
 
     obj.run(10)
     obj.save(savefile)

Community Data Science Collective || Want to submit a patch?