Skip to content

Commit

Permalink
final fallback of 2, not 1. see scikit-tda#185
Browse files Browse the repository at this point in the history
  • Loading branch information
deargle committed Aug 26, 2020
1 parent 4c286fa commit 69b2858
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions kmapper/kmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,15 +500,12 @@ def map(
# we consider clustering or skipping it.
cluster_params = clusterer.get_params()

if precomputed:
min_cluster_samples = 2
else:
min_cluster_samples = cluster_params.get(
"n_clusters",
cluster_params.get(
"min_cluster_size", cluster_params.get("min_samples", 1)
),
)
min_cluster_samples = cluster_params.get(
"n_clusters",
cluster_params.get(
"min_cluster_size", cluster_params.get("min_samples", 2)
),
)

if self.verbose > 1:
print(
Expand Down

0 comments on commit 69b2858

Please sign in to comment.