Skip to content

Commit eda1c2e

Browse files
authored
MAINT: make import imblearn possible (#500)
1 parent 07b4253 commit eda1c2e

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

doc/whats_new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
Release history
55
===============
66

7+
.. include:: whats_new/v0.5.rst
8+
79
.. include:: whats_new/v0.4.rst
810

911
.. include:: whats_new/v0.3.rst

doc/whats_new/v0.5.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.. _changes_0_5:
2+
3+
Version 0.5 (under development)
4+
===============================
5+
6+
Changelog
7+
---------
8+
9+
Maintenance
10+
...........
11+
12+
- Make it possible to ``import imblearn`` and access submodule.
13+
:issue:`500` by :user:`Guillaume Lemaitre <glemaitre>`.

imblearn/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,20 @@
3131
pipeline
3232
Module which allowing to create pipeline with scikit-learn estimators.
3333
"""
34+
from . import combine
35+
from . import ensemble
36+
from . import exceptions
37+
from . import keras
38+
from . import metrics
39+
from . import over_sampling
40+
from . import tensorflow
41+
from . import under_sampling
42+
from . import utils
43+
from . import pipeline
3444

3545
from .base import FunctionSampler
3646
from ._version import __version__
3747

38-
__all__ = ['FunctionSampler', '__version__']
48+
__all__ = ['combine', 'ensemble', 'exceptions', 'keras', 'metrics',
49+
'over_sampling', 'tensorflow', 'under_sampling',
50+
'utils', 'pipeline', 'FunctionSampler', '__version__']

0 commit comments

Comments
 (0)