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 <g.lemaitre58@gmail.com>
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 <g.lemaitre58@gmail.com>
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

imblearn/tensorflow/tests/test_generator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import division
2-
31
import pytest
42
import numpy as np
53
from scipy import sparse

imblearn/under_sampling/_prototype_generation/_cluster_centroids.py

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

9-
from __future__ import division
10-
119
import numpy as np
1210
from scipy import sparse
1311

imblearn/under_sampling/_prototype_selection/_condensed_nearest_neighbour.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 collections import Counter
119

1210
import numpy as np

imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py

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

9-
from __future__ import division
10-
119
from collections import Counter
1210

1311
import numpy as np

imblearn/under_sampling/_prototype_selection/_instance_hardness_threshold.py

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

9-
from __future__ import division
10-
119
from collections import Counter
1210

1311
import numpy as np

imblearn/under_sampling/_prototype_selection/_nearmiss.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 collections import Counter
119

imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.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 collections import Counter
108

119
import numpy as np

imblearn/under_sampling/_prototype_selection/_one_sided_selection.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 collections import Counter
108

119
import numpy as np

imblearn/under_sampling/_prototype_selection/_random_under_sampler.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

119
from sklearn.utils import check_array

imblearn/under_sampling/_prototype_selection/_tomek_links.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
import numpy as np
119
from sklearn.neighbors import NearestNeighbors
1210
from sklearn.utils import safe_indexing

imblearn/utils/_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
44
# License: MIT
5-
from __future__ import division
65

76
import warnings
87
from collections import OrderedDict

imblearn/utils/estimator_checks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
55
# License: MIT
66

7-
from __future__ import division
8-
97
import sys
108
import traceback
119

0 commit comments

Comments
 (0)