Skip to content

Commit 271d4cf

Browse files
author
Guillaume Lemaitre
committed
DOC Add whats new info and update doc
1 parent 67361fc commit 271d4cf

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

doc/api.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,20 @@ Functions
158158
:toctree: generated/
159159

160160
datasets.make_imbalance
161+
162+
163+
Utilities
164+
=========
165+
166+
.. automodule:: imblearn.utils
167+
:no-members:
168+
:no-inherited-members:
169+
170+
.. currentmodule:: imblearn
171+
172+
Functions
173+
---------
174+
.. autosummary::
175+
:toctree: generated/
176+
177+
utils.estimators_checks.check_estimator

doc/whats_new.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Enhancement
4141
- Validate the type of target in binary samplers. A warning is raised for the moment. By `Guillaume Lemaitre`_ and `Christos Aridas`_.
4242
- Change from `cross_validation` module to `model_selection` module for
4343
`sklearn` deprecation cycle. By `Dayvid Oliveira`_ and `Christos Aridas`_.
44+
- All the unit tests have been factorized and a `check_estimators` has
45+
been derived from scikit-learn. By `Guillaume Lemaitre`_.
4446

4547
New features
4648
~~~~~~~~~~~~
@@ -64,6 +66,8 @@ API changes summary
6466
- `k` has been deprecated in :class:`over_sampling.ADASYN`. Use `n_neighbors` instead. By `Guillaume Lemaitre`_.
6567
- `k` and `m` have been deprecated in :class:`over_sampling.SMOTE`. Use `k_neighbors` and `m_neighbors` instead. By `Guillaume Lemaitre`_.
6668
- `n_neighbors` accept `KNeighborsMixin` based object for :class:`under_sampling.EditedNearestNeighbors`, :class:`under_sampling.CondensedNeareastNeigbour`, :class:`under_sampling.NeighbourhoodCleaningRule`, :class:`under_sampling.RepeatedEditedNearestNeighbours`, and :class:`under_sampling.AllKNN`. By `Guillaume Lemaitre`_.
69+
- `__init__` has been removed from the :class:`base.SamplerMixin` to
70+
create a real mixin class. By `Guillaume Lemaitre`_.
6771

6872
Documentation changes
6973
~~~~~~~~~~~~~~~~~~~~~

imblearn/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
Module which provides methods to under-sample a dataset.
1818
under-sampling
1919
Module which provides methods to over-sample a dataset.
20+
utils
21+
Module including various utilities.
2022
pipeline
2123
Module which allowing to create pipeline with scikit-learn estimators.
2224
"""

imblearn/utils/estimators_checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def _yield_all_checks(name, Estimator):
4545

4646

4747
def check_estimator(Estimator):
48-
"""Check if estimator adheres to scikit-learn conventions and imblearn.
48+
"""Check if estimator adheres to scikit-learn conventions and
49+
imbalanced-learn
4950
5051
This estimator will run an extensive test-suite for input validation,
5152
shapes, etc.

0 commit comments

Comments
 (0)