Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jun 12, 2019
1 parent c0aa81c commit 85422e8
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 43 deletions.
2 changes: 0 additions & 2 deletions imblearn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import warnings
from abc import ABCMeta, abstractmethod

Expand Down
2 changes: 0 additions & 2 deletions imblearn/combine/_smote_enn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from sklearn.base import clone
from sklearn.utils import check_X_y

Expand Down
2 changes: 0 additions & 2 deletions imblearn/combine/_smote_tomek.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from sklearn.base import clone
from sklearn.utils import check_X_y

Expand Down
2 changes: 0 additions & 2 deletions imblearn/metrics/_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# Dariusz Brzezinski
# License: MIT

from __future__ import division

import warnings
import functools

Expand Down
2 changes: 0 additions & 2 deletions imblearn/metrics/tests/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from functools import partial

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions imblearn/over_sampling/_adasyn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import numpy as np
from scipy import sparse

Expand Down
1 change: 0 additions & 1 deletion imblearn/over_sampling/_random_over_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# Christos Aridas
# License: MIT
from __future__ import division

from collections import Counter

Expand Down
3 changes: 0 additions & 3 deletions imblearn/over_sampling/_smote.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# Dzianis Dudnik
# License: MIT

from __future__ import division

import math
import types
import warnings
Expand Down Expand Up @@ -1218,7 +1216,6 @@ def _validate_estimator(self):
if self.kmeans_estimator_.n_clusters != 1 else -np.inf
)


def _find_cluster_sparsity(self, X):
"""Compute the cluster sparsity."""
euclidean_distances = pairwise_distances(X, metric="euclidean",
Expand Down
2 changes: 0 additions & 2 deletions imblearn/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# Guillaume Lemaitre <g.lemaitre58@gmail.com>
# License: BSD

from __future__ import division

from collections import defaultdict
from itertools import islice

Expand Down
2 changes: 0 additions & 2 deletions imblearn/tensorflow/_generator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Implement generators for ``tensorflow`` which will balance the data."""

from __future__ import division

from scipy.sparse import issparse

from sklearn.base import clone
Expand Down
2 changes: 0 additions & 2 deletions imblearn/tensorflow/tests/test_generator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import division

import pytest
import numpy as np
from scipy import sparse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import numpy as np
from scipy import sparse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from collections import Counter

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from collections import Counter

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from collections import Counter

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions imblearn/under_sampling/_prototype_selection/_nearmiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import warnings
from collections import Counter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from collections import Counter

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

from collections import Counter

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import numpy as np

from sklearn.utils import check_array
Expand Down
2 changes: 0 additions & 2 deletions imblearn/under_sampling/_prototype_selection/_tomek_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Christos Aridas
# License: MIT

from __future__ import division

import numpy as np
from sklearn.neighbors import NearestNeighbors
from sklearn.utils import safe_indexing
Expand Down
1 change: 0 additions & 1 deletion imblearn/utils/_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# License: MIT
from __future__ import division

import warnings
from collections import OrderedDict
Expand Down
2 changes: 0 additions & 2 deletions imblearn/utils/estimator_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# License: MIT

from __future__ import division

import sys
import traceback

Expand Down

0 comments on commit 85422e8

Please sign in to comment.