Fix message construction
Browse files
app.py
CHANGED
@@ -37,13 +37,13 @@ def get_clusters_plot(n_blobs, quantile, cluster_std):
|
|
37 |
if len(centers) != n_clusters_:
|
38 |
message = (
|
39 |
f"The number of estimated clusters {n_clusters_}"
|
40 |
-
" differs from the true number of clusters. ({n_blobs})."
|
41 |
-
"
|
42 |
)
|
43 |
else:
|
44 |
message = (
|
45 |
f"The number of estimated clusters {n_clusters_}"
|
46 |
-
"matches the true number of clusters. ({n_blobs})!"
|
47 |
)
|
48 |
return fig, message
|
49 |
|
|
|
37 |
if len(centers) != n_clusters_:
|
38 |
message = (
|
39 |
f"The number of estimated clusters {n_clusters_}"
|
40 |
+
+ f" differs from the true number of clusters. ({n_blobs})."
|
41 |
+
+ " Try changing the bandwidth parameter."
|
42 |
)
|
43 |
else:
|
44 |
message = (
|
45 |
f"The number of estimated clusters {n_clusters_}"
|
46 |
+
+ f" matches the true number of clusters. ({n_blobs})!"
|
47 |
)
|
48 |
return fig, message
|
49 |
|