File tree Expand file tree Collapse file tree 8 files changed +29
-16
lines changed
conda-recipe/imbalanced-learn
under_sampling/prototype_selection Expand file tree Collapse file tree 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
9393
9494conda 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
9999cd " $HOME /$CIRCLE_PROJECT_REPONAME "
Original file line number Diff line number Diff line change 11package :
22 name : imbalanced-learn
3- version : " 0.3.0 "
3+ version : " 0.3.1 "
44
55source :
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+
913requirements :
1014 build :
1115 - python
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ Combination of over- and under-sampling
88
99We previously presented :class: `SMOTE ` and showed that this method can generate
1010noisy 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
1616In 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 `
2020and (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
Original file line number Diff line number Diff line change 103103# built documents.
104104#
105105# The short X.Y version.
106- __version__ = '0.3.0 '
106+ __version__ = '0.3.1 '
107107version = __version__
108108# The full version, including alpha/beta/rc tags.
109109release = __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`.
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
101101provides :func: `deprecate_parameter `: which is used to deprecate a sampler's
102102parameter (attribute) by another one.
103103
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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' )
Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 0.3.0
2+ current_version = 0.3.1
33tag = False
44parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
55serialize =
You can’t perform that action at this time.
0 commit comments