Fix punctuation and formatting
Browse files
app.py
CHANGED
@@ -36,14 +36,14 @@ def get_clusters_plot(n_blobs, quantile, cluster_std):
|
|
36 |
|
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
|
41 |
-
+ " Try changing the
|
42 |
)
|
43 |
else:
|
44 |
message = (
|
45 |
-
f"The number of estimated clusters {n_clusters_}"
|
46 |
-
+ f" matches the true number of clusters
|
47 |
)
|
48 |
return fig, message
|
49 |
|
|
|
36 |
|
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 `Quantile` 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 |
|