Skip to content

Commit 85422e8

Browse files
committed
PEP8
1 parent c0aa81c commit 85422e8

22 files changed

+0
-43
lines changed

imblearn/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Christos Aridas
55
# License: MIT
66

7-
from __future__ import division
8-
97
import warnings
108
from abc import ABCMeta, abstractmethod
119

imblearn/combine/_smote_enn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Christos Aridas
55
# License: MIT
66

7-
from __future__ import division
8-
97
from sklearn.base import clone
108
from sklearn.utils import check_X_y
119

imblearn/combine/_smote_tomek.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# Christos Aridas
66
# License: MIT
77

8-
from __future__ import division
9-
108
from sklearn.base import clone
119
from sklearn.utils import check_X_y
1210

imblearn/metrics/_classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# Dariusz Brzezinski
1313
# License: MIT
1414

15-
from __future__ import division
16-
1715
import warnings
1816
import functools
1917

imblearn/metrics/tests/test_classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Christos Aridas
55
# License: MIT
66

7-
from __future__ import division
8-
97
from functools import partial
108

119
import numpy as np

imblearn/over_sampling/_adasyn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Christos Aridas
55
# License: MIT
66

7-
from __future__ import division
8-
97
import numpy as np
108
from scipy import sparse
119

imblearn/over_sampling/_random_over_sampler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Authors: Guillaume Lemaitre <[email protected]>
44
# Christos Aridas
55
# License: MIT
6-
from __future__ import division
76

87
from collections import Counter
98

imblearn/over_sampling/_smote.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# Dzianis Dudnik
77
# License: MIT
88

9-
from __future__ import division
10-
119
import math
1210
import types
1311
import warnings
@@ -1218,7 +1216,6 @@ def _validate_estimator(self):
12181216
if self.kmeans_estimator_.n_clusters != 1 else -np.inf
12191217
)
12201218

1221-
12221219
def _find_cluster_sparsity(self, X):
12231220
"""Compute the cluster sparsity."""
12241221
euclidean_distances = pairwise_distances(X, metric="euclidean",

imblearn/pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# Guillaume Lemaitre <[email protected]>
1414
# License: BSD
1515

16-
from __future__ import division
17-
1816
from collections import defaultdict
1917
from itertools import islice
2018

imblearn/tensorflow/_generator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Implement generators for ``tensorflow`` which will balance the data."""
22

3-
from __future__ import division
4-
53
from scipy.sparse import issparse
64

75
from sklearn.base import clone

0 commit comments

Comments
 (0)