Skip to content

Commit

Permalink
Fix awful min_sample condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Feb 23, 2024
1 parent 3f1ea31 commit 5454f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def fit(self, X, max_num_clusters, min_cluster_prop, use_gpu = False):

# DBSCAN parameters
cache_out = "./" + self.outPrefix + "_cache"
min_samples = min(max(int(min_cluster_prop * self.subsampled_X.shape[0]), 10),1023)
min_samples = min(int(min_cluster_prop * self.subsampled_X.shape[0]), 1023)
min_cluster_size = max(int(0.01 * self.subsampled_X.shape[0]), 10)

# Check on initialisation of GPU libraries and memory
Expand Down

0 comments on commit 5454f7a

Please sign in to comment.