Skip to content

Commit 6fc3207

Browse files
authored
MAINT: create private modules when they should (#452)
closes #422
1 parent 6916fe9 commit 6fc3207

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+60
-62
lines changed

imblearn/combine/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
over-sampling and under-sampling.
33
"""
44

5-
from .smote_enn import SMOTEENN
6-
from .smote_tomek import SMOTETomek
5+
from ._smote_enn import SMOTEENN
6+
from ._smote_tomek import SMOTETomek
77

88
__all__ = ['SMOTEENN', 'SMOTETomek']

imblearn/combine/smote_enn.py renamed to imblearn/combine/_smote_enn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from __future__ import division
88

99
import logging
10-
import warnings
1110

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

imblearn/combine/smote_tomek.py renamed to imblearn/combine/_smote_tomek.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from __future__ import division
99

1010
import logging
11-
import warnings
1211

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

imblearn/datasets/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
imbalanced data.
44
"""
55

6-
from .imbalance import make_imbalance
6+
from ._imbalance import make_imbalance
77

8-
from .zenodo import fetch_datasets
8+
from ._zenodo import fetch_datasets
99

1010
__all__ = ['make_imbalance', 'fetch_datasets']

imblearn/datasets/imbalance.py renamed to imblearn/datasets/_imbalance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from sklearn.utils import check_X_y
1313

14-
from ..under_sampling.prototype_selection import RandomUnderSampler
14+
from ..under_sampling import RandomUnderSampler
1515
from ..utils import check_sampling_strategy
1616

1717
LOGGER = logging.getLogger(__name__)
File renamed without changes.

imblearn/ensemble/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
under-sampled subsets combined inside an ensemble.
44
"""
55

6-
from .easy_ensemble import EasyEnsemble
7-
from .balance_cascade import BalanceCascade
6+
from ._easy_ensemble import EasyEnsemble
7+
from ._balance_cascade import BalanceCascade
88

9-
from .classifier import BalancedBaggingClassifier
9+
from ._classifier import BalancedBaggingClassifier
1010

1111
__all__ = ['EasyEnsemble', 'BalancedBaggingClassifier', 'BalanceCascade']
File renamed without changes.

0 commit comments

Comments
 (0)