Skip to content

Commit 0235db4

Browse files
committed
removed unused calls to max()
1 parent fe591e6 commit 0235db4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

imblearn/utils/_validation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ def _sampling_strategy_dict(sampling_strategy, y, sampling_type):
328328
)
329329
sampling_strategy_ = {}
330330
if sampling_type == "over-sampling":
331-
max(target_stats.values())
332-
max(target_stats, key=target_stats.get)
333331
for class_sample, n_samples in sampling_strategy.items():
334332
if n_samples < target_stats[class_sample]:
335333
raise ValueError(

0 commit comments

Comments
 (0)