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 28, 2020
1 parent 929244e commit 7f4554e
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 7f4554e

Please sign in to comment.