You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Finds index largest gap usings absolute differences"""
@@ -101,13 +103,15 @@ def find_k_largest_diff():
101
103
102
104
ifkisNoneork==1:
103
105
# Fall back to using largest absolute difference in case gap heuristic did not work
104
-
warnings.warn(
105
-
"Unable to confidently determine the number of clusters n_c. The largest difference between consecutive eigenvalues was used to determine the number of clusters. Please provide n_c."
106
+
warnings.warn( # noqa: B028
107
+
"Unable to confidently determine the number of clusters n_c. The largest difference between consecutive eigenvalues was used to determine the number of clusters. Please provide n_c.",
108
+
stacklevel=2,
106
109
)
107
110
k=find_k_largest_diff()
108
111
ifk==1:
109
-
warnings.warn(
110
-
"Please provide the number of clusters n_c. The heuristics identified a single cluster and n_c was set to 2."
112
+
warnings.warn( # noqa: B028
113
+
"Please provide the number of clusters n_c. The heuristics identified a single cluster and n_c was set to 2.",
0 commit comments