Skip to content

Commit 1956b41

Browse files
committed
iter
1 parent bd6c833 commit 1956b41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

imblearn/over_sampling/_smote/cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def _fit_resample(self, X, y):
220220

221221
# the cluster is already considered balanced
222222
if cluster_class_mean < balance_threshold:
223+
print(cluster_class_mean)
224+
print(balance_threshold)
223225
continue
224226

225227
# not enough samples to apply SMOTE

imblearn/over_sampling/_smote/tests/test_kmeans_smote.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def test_sample_kmeans_custom(data, k_neighbors, kmeans_estimator):
9191
def test_sample_kmeans_not_enough_clusters(data):
9292
X, y = data
9393
smote = KMeansSMOTE(
94-
density_exponent=2,
95-
cluster_balance_threshold=1,
9694
random_state=42,
9795
kmeans_estimator=10,
9896
k_neighbors=2,

0 commit comments

Comments
 (0)