Skip to content

Commit 10a658f

Browse files
authored
RELEASE: bumpversion 0.4.0 (#487)
1 parent 3047405 commit 10a658f

File tree

3 files changed

+51
-17
lines changed

3 files changed

+51
-17
lines changed

doc/whats_new/v0.0.4.rst

+44-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
11
.. _changes_0_4:
22

3-
Version 0.4 (under development)
4-
===============================
3+
Version 0.4
4+
===========
5+
6+
**October, 2018**
7+
8+
.. warning::
9+
10+
Version 0.4 is the last version of imbalanced-learn to support Python 2.7
11+
and Python 3.4. Imbalanced-learn 0.5 will require Python 3.5 or higher.
12+
13+
Highlights
14+
----------
15+
16+
This release brings its set of new feature as well as some API changes to
17+
strengthen the foundation of imbalanced-learn.
18+
19+
As new feature, 2 new modules :mod:`imblearn.keras` and
20+
:mod:`imblearn.tensorflow` have been added in which imbalanced-learn samplers
21+
can be used to generate balanced mini-batches.
22+
23+
The module :mod:`imblearn.ensemble` has been consolidated with new classifier:
24+
:class:`imblearn.ensemble.BalancedRandomForestClassifier`,
25+
:class:`imblearn.ensemble.EasyEnsembleClassifier`,
26+
:class:`imblearn.ensemble.RUSBoostClassifier`.
27+
28+
Support for string has been added in
29+
:class:`imblearn.over_sampling.RandomOverSampler` and
30+
:class:`imblearn.under_sampling.RandomUnderSampler`. In addition, a new class
31+
:class:`imblearn.over_sampling.SMOTENC` allows to generate sample with data
32+
sets containing both continuous and categorical features.
33+
34+
The :class:`imblearn.over_sampling.SMOTE` has been simplified and break down
35+
to 2 additional classes:
36+
:class:`imblearn.over_sampling.SVMSMOTE` and
37+
:class:`imblearn.over_sampling.BorderlineSMOTE`.
38+
39+
There is also some changes regarding the API:
40+
the parameter ``sampling_strategy`` has been introduced to replace the
41+
``ratio`` parameter. In addition, the ``return_indices`` argument has been
42+
deprecated and all samplers will exposed a ``sample_indices_`` whenever this is
43+
possible.
544

645
Changelog
746
---------
@@ -26,8 +65,9 @@ API
2665
New features
2766
............
2867

29-
- Add a ``keras`` and ``tensorflow`` modules to create balanced mini-batches
30-
generator. :issue:`409` by :user:`Guillaume Lemaitre <glemaitre>`.
68+
- Add a :mod:`keras` and :mod:`tensorflow` modules to create balanced
69+
mini-batches generator.
70+
:issue:`409` by :user:`Guillaume Lemaitre <glemaitre>`.
3171

3272
- Add :class:`imblearn.ensemble.EasyEnsembleClassifier` which create a bag of
3373
AdaBoost classifier trained on balanced bootstrap samples.

imblearn/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2323
#
2424

25-
__version__ = '0.4.0.dev0'
25+
__version__ = '0.4.0'

setup.cfg

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
[bumpversion]
2-
current_version = 0.4.0.dev0
2+
current_version = 0.4.0
33
tag = False
44
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
5-
serialize =
5+
serialize =
66
{major}.{minor}.{patch}.{release}{dev}
77
{major}.{minor}.{patch}
88

99
[bumpversion:part:release]
1010
optional_value = gamma
11-
values =
11+
values =
1212
dev
1313
gamma
1414

1515
[bumpversion:part:dev]
1616

17-
[bumpversion:file:imblearn/version.py]
18-
19-
[bumpversion:file:doc/conf.py]
17+
[bumpversion:file:imblearn/_version.py]
2018

2119
[aliases]
2220
test = pytest
2321

2422
[tool:pytest]
25-
addopts =
26-
--doctest-modules
23+
addopts =
24+
--doctest-modules
2725

28-
# filterwarnings =
29-
# error::DeprecationWarning
30-
# error::PendingDeprecationWarning
31-
# error::FutureWarning

0 commit comments

Comments
 (0)