Skip to content

Commit 6880e00

Browse files
authored
Merge pull request #353 from glemaitre/0.3.1
Release 0.3.1
2 parents aa489c0 + 29a36cc commit 6880e00

File tree

8 files changed

+29
-16
lines changed

8 files changed

+29
-16
lines changed

build_tools/circle/build_doc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ source activate $CONDA_ENV_NAME
9393

9494
conda install --yes pip numpy scipy scikit-learn pillow matplotlib sphinx \
9595
sphinx_rtd_theme numpydoc
96-
pip install sphinx-gallery
96+
pip install sphinx-gallery==0.1.11
9797

9898
# Build and install imbalanced-learn in dev mode
9999
cd "$HOME/$CIRCLE_PROJECT_REPONAME"

conda-recipe/imbalanced-learn/meta.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
package:
22
name: imbalanced-learn
3-
version: "0.3.0"
3+
version: "0.3.1"
44

55
source:
6-
git_rev: 0.3.0
6+
git_rev: 0.3.1
77
git_url: https://github.com/scikit-learn-contrib/imbalanced-learn.git
88

9+
build:
10+
number: 0
11+
noarch: python
12+
913
requirements:
1014
build:
1115
- python

doc/combine.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ Combination of over- and under-sampling
88

99
We previously presented :class:`SMOTE` and showed that this method can generate
1010
noisy samples by interpolating new points between marginal outliers and
11-
inliers. This issue can be solved by cleaning the resulted space obtained
12-
after over-sampling.
11+
inliers. This issue can be solved by cleaning the space resulting
12+
from over-sampling.
1313

1414
.. currentmodule:: imblearn.combine
1515

1616
In this regard, Tomek's link and edited nearest-neighbours are the two cleaning
17-
methods which have been added pipeline after SMOTE over-sampling to obtain a
18-
cleaner space. Therefore, imbalanced-learn implemented two ready-to-use class
19-
which pipeline both over- and under-sampling methods: (i) :class:`SMOTETomek`
17+
methods that have been added to the pipeline after applying SMOTE over-sampling
18+
to obtain a cleaner space. The two ready-to use classes imbalanced-learn implements
19+
for combining over- and undersampling methods are: (i) :class:`SMOTETomek`
2020
and (ii) :class:`SMOTEENN`.
2121

22-
These two classes can be used as any other sampler with identical parameters
23-
than their former samplers::
22+
Those two classes can be used like any other sampler with parameters identical
23+
to their former samplers::
2424

2525
>>> from collections import Counter
2626
>>> from sklearn.datasets import make_classification

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
# built documents.
104104
#
105105
# The short X.Y version.
106-
__version__ = '0.3.0'
106+
__version__ = '0.3.1'
107107
version = __version__
108108
# The full version, including alpha/beta/rc tags.
109109
release = __version__

doc/developers_utils.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ All the following functions and classes are in the module :mod:`imblearn.utils`.
1212
1313
These utilities are meant to be used internally within the imbalanced-learn
1414
package. They are not guaranteed to be stable between versions of
15-
imbalance-learn. Backports, in particular, will be removed as the
16-
imbalance-learn dependencies evolve.
15+
imbalanced-learn. Backports, in particular, will be removed as the
16+
imbalanced-learn dependencies evolve.
1717
1818
1919
Validation Tools
@@ -97,7 +97,7 @@ same information as the deprecation warning as explained above. Use the
9797
``k`` was renamed to ``n_clusters`` in version 0.13 and will be removed
9898
in 0.15.
9999

100-
On the top of all the functionality provided by scikit-learn. Imbalance-learn
100+
On the top of all the functionality provided by scikit-learn. imbalanced-learn
101101
provides :func:`deprecate_parameter`: which is used to deprecate a sampler's
102102
parameter (attribute) by another one.
103103

imblearn/under_sampling/prototype_selection/neighbourhood_cleaning_rule.py

+9
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ class NeighbourhoodCleaningRule(BaseCleaningSampler):
7373
:class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
7474
find the nearest-neighbors.
7575
76+
threshold_cleaning : float, optional (default=0.5)
77+
Threshold used to whether consider a class or not during the cleaning
78+
after applying ENN. A class will be considered during cleaning when:
79+
80+
Ci > C x T ,
81+
82+
where Ci and C is the number of samples in the class and the data set,
83+
respectively and theta is the threshold.
84+
7685
n_jobs : int, optional (default=1)
7786
The number of threads to open if possible.
7887

imblearn/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
2222
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2323
#
24-
__version__ = '0.3.0'
24+
__version__ = '0.3.1'
2525

2626
_IMBALANCED_DATASET_INSTALL_MSG = 'See %s for installation information.' % (
2727
'http://contrib.scikit-learn.org/imbalanced-learn/install.html')

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.0
2+
current_version = 0.3.1
33
tag = False
44
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
55
serialize =

0 commit comments

Comments
 (0)