File tree 8 files changed +29
-16
lines changed
conda-recipe/imbalanced-learn
under_sampling/prototype_selection
8 files changed +29
-16
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ source activate $CONDA_ENV_NAME
93
93
94
94
conda install --yes pip numpy scipy scikit-learn pillow matplotlib sphinx \
95
95
sphinx_rtd_theme numpydoc
96
- pip install sphinx-gallery
96
+ pip install sphinx-gallery==0.1.11
97
97
98
98
# Build and install imbalanced-learn in dev mode
99
99
cd " $HOME /$CIRCLE_PROJECT_REPONAME "
Original file line number Diff line number Diff line change 1
1
package :
2
2
name : imbalanced-learn
3
- version : " 0.3.0 "
3
+ version : " 0.3.1 "
4
4
5
5
source :
6
- git_rev : 0.3.0
6
+ git_rev : 0.3.1
7
7
git_url : https://github.com/scikit-learn-contrib/imbalanced-learn.git
8
8
9
+ build :
10
+ number : 0
11
+ noarch : python
12
+
9
13
requirements :
10
14
build :
11
15
- python
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ Combination of over- and under-sampling
8
8
9
9
We previously presented :class: `SMOTE ` and showed that this method can generate
10
10
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.
13
13
14
14
.. currentmodule :: imblearn.combine
15
15
16
16
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 `
20
20
and (ii) :class: `SMOTEENN `.
21
21
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::
24
24
25
25
>>> from collections import Counter
26
26
>>> from sklearn.datasets import make_classification
Original file line number Diff line number Diff line change 103
103
# built documents.
104
104
#
105
105
# The short X.Y version.
106
- __version__ = '0.3.0 '
106
+ __version__ = '0.3.1 '
107
107
version = __version__
108
108
# The full version, including alpha/beta/rc tags.
109
109
release = __version__
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ All the following functions and classes are in the module :mod:`imblearn.utils`.
12
12
13
13
These utilities are meant to be used internally within the imbalanced-learn
14
14
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.
17
17
18
18
19
19
Validation Tools
@@ -97,7 +97,7 @@ same information as the deprecation warning as explained above. Use the
97
97
``k`` was renamed to ``n_clusters`` in version 0.13 and will be removed
98
98
in 0.15.
99
99
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
101
101
provides :func: `deprecate_parameter `: which is used to deprecate a sampler's
102
102
parameter (attribute) by another one.
103
103
Original file line number Diff line number Diff line change @@ -73,6 +73,15 @@ class NeighbourhoodCleaningRule(BaseCleaningSampler):
73
73
:class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
74
74
find the nearest-neighbors.
75
75
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
+
76
85
n_jobs : int, optional (default=1)
77
86
The number of threads to open if possible.
78
87
Original file line number Diff line number Diff line change 21
21
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
22
22
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
23
23
#
24
- __version__ = '0.3.0 '
24
+ __version__ = '0.3.1 '
25
25
26
26
_IMBALANCED_DATASET_INSTALL_MSG = 'See %s for installation information.' % (
27
27
'http://contrib.scikit-learn.org/imbalanced-learn/install.html' )
Original file line number Diff line number Diff line change 1
1
[bumpversion]
2
- current_version = 0.3.0
2
+ current_version = 0.3.1
3
3
tag = False
4
4
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
5
5
serialize =
You can’t perform that action at this time.
0 commit comments