Skip to content

Commit b6e015e

Browse files
author
Guillaume Lemaitre
committed
Change the package name
1 parent 1c30fbe commit b6e015e

File tree

203 files changed

+109
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+109
-105
lines changed

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[run]
44
branch = True
5-
source = unbalanced_dataset
6-
include = */unbalanced_dataset/*
5+
source = imblearn
6+
include = */imblearn/*
77
omit =
88
*/setup.py
99

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323
global:
2424
# Directory where tests are run from
2525
- TEST_DIR=/tmp/test_dir
26-
- MODULE=unbalanced_dataset
26+
- MODULE=imblearn
2727
- OMP_NUM_THREADS=4
2828
- OPENBLAS_NUM_THREADS=4
2929
matrix:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ clean:
1717
rm -rf examples/.ipynb_checkpoints
1818

1919
test:
20-
$(NOSETESTS) -s -v unbalanced_dataset
20+
$(NOSETESTS) -s -v imblearn
2121

2222
# doctest:
23-
# $(PYTHON) -c "import unbalanced_dataset, sys, io; sys.exit(unbalanced_dataset.doctest_verbose())"
23+
# $(PYTHON) -c "import imblearn, sys, io; sys.exit(imblearn.doctest_verbose())"
2424

2525
coverage:
26-
$(NOSETESTS) unbalanced_dataset -s -v --with-coverage --cover-package=unbalanced_dataset
26+
$(NOSETESTS) imblearn -s -v --with-coverage --cover-package=imblearn
2727

2828
html:
2929
conda install -y sphinx sphinx_rtd_theme numpydoc

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
UnbalancedDataset
1+
imbalanced-learn
22
=================
33

4-
UnbalancedDataset is a python package offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance.
4+
imbalanced-learn is a python package offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance.
55
It is compatible with [scikit-learn](http://scikit-learn.org/stable/) and has been submitted to be part of [scikit-learn-contrib](https://github.com/scikit-learn-contrib) projects.
66

77
[![Code Health](https://landscape.io/github/glemaitre/UnbalancedDataset/master/landscape.svg?style=flat)](https://landscape.io/github/glemaitre/UnbalancedDataset/master)
@@ -19,15 +19,15 @@ Installation
1919

2020
### Dependencies
2121

22-
UnbalancedDataset is tested to work under Python 2.7 and Python 3.5.
22+
imbalanced-learn is tested to work under Python 2.7 and Python 3.5.
2323

2424
* scipy(>=0.17.0)
2525
* numpy(>=1.10.4)
2626
* scikit-learn(>=0.17.1)
2727

2828
### Installation
2929

30-
UnbalancedDataset is not currently available on the PyPi's reporitories,
30+
imbalanced-learn is not currently available on the PyPi's reporitories,
3131
however you can install it via `pip`:
3232

3333
pip install git+https://github.com/fmfn/UnbalancedDataset
@@ -60,7 +60,7 @@ Re-sampling techniques are divided in two categories:
6060
3. Combining over- and under-sampling.
6161
4. Create ensemble balanced sets.
6262

63-
Bellow is a list of the methods currently implemented in this module.
63+
Below is a list of the methods currently implemented in this module.
6464

6565
* Under-sampling
6666
1. Random majority under-sampling with replacement

doc/api.rst

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
#################
2-
API Documentation
3-
#################
1+
######################
2+
`imbalanced-learn` API
3+
######################
44

5-
This is the full API documentation of the `unbalanced_dataset` toolbox.
5+
This is the full API documentation of the `imbalanced-learn` toolbox.
66

77
.. _under_sampling_ref:
88

99
Under-sampling methods
1010
======================
1111

12-
.. automodule:: unbalanced_dataset.under_sampling
12+
.. automodule:: imblearn.under_sampling
1313
:no-members:
1414
:no-inherited-members:
1515

1616
Classes
1717
-------
18-
.. currentmodule:: unbalanced_dataset
18+
.. currentmodule:: imblearn
1919

2020
.. autosummary::
2121
:toctree: generated/
@@ -37,13 +37,13 @@ Classes
3737
Over-sampling methods
3838
=====================
3939

40-
.. automodule:: unbalanced_dataset.over_sampling
40+
.. automodule:: imblearn.over_sampling
4141
:no-members:
4242
:no-inherited-members:
4343

4444
Classes
4545
-------
46-
.. currentmodule:: unbalanced_dataset
46+
.. currentmodule:: imblearn
4747

4848
.. autosummary::
4949
:toctree: generated/
@@ -57,13 +57,13 @@ Classes
5757
Combination of over- and under-sampling methods
5858
===============================================
5959

60-
.. automodule:: unbalanced_dataset.combine
60+
.. automodule:: imblearn.combine
6161
:no-members:
6262
:no-inherited-members:
6363

6464
Classes
6565
-------
66-
.. currentmodule:: unbalanced_dataset
66+
.. currentmodule:: imblearn
6767

6868
.. autosummary::
6969
:toctree: generated/
@@ -77,13 +77,13 @@ Classes
7777
Ensemble methods
7878
================
7979

80-
.. automodule:: unbalanced_dataset.ensemble
80+
.. automodule:: imblearn.ensemble
8181
:no-members:
8282
:no-inherited-members:
8383

8484
Classes
8585
-------
86-
.. currentmodule:: unbalanced_dataset
86+
.. currentmodule:: imblearn
8787

8888
.. autosummary::
8989
:toctree: generated/
@@ -97,17 +97,21 @@ Classes
9797
Pipeline
9898
========
9999

100-
.. automodule:: unbalanced_dataset.pipeline
100+
.. automodule:: imblearn.pipeline
101101
:no-members:
102102
:no-inherited-members:
103103

104-
.. currentmodule:: unbalanced_dataset
104+
.. currentmodule:: imblearn
105105

106+
Classes
107+
-------
106108
.. autosummary::
107109
:toctree: generated/
108110

109111
pipeline.Pipeline
110112

113+
Functions
114+
---------
111115
.. autosummary::
112116
:toctree: generated/
113117

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
master_doc = 'index'
8080

8181
# General information about the project.
82-
project = u'unbalanced_dataset'
82+
project = u'imbalanced-learn'
8383
copyright = u'2016, Guillaume Lemaitre, Fernando Nogueira'
8484

8585
# The version info for the project you're documenting, acts as replacement for
@@ -89,7 +89,7 @@
8989
# The short X.Y version.
9090
version = '0.1'
9191
# The full version, including alpha/beta/rc tags.
92-
release = '0.1.dev0'
92+
release = '0.1'
9393

9494
# The language for content autogenerated by Sphinx. Refer to documentation
9595
# for a list of supported languages.

doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
############################################
7-
Welcome to unbalanced_dataset focumentation!
8-
############################################
6+
##########################################
7+
Welcome to imbalanced-learn documentation!
8+
##########################################
99

1010
Contents:
1111
=========

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Getting Started
55
Install
66
=======
77

8-
The install of ``UnbalancedDataset`` is almost straightforward. You need to clone it from GitHub_::
8+
The install of ``imbalanced-learn`` is almost straightforward. You need to clone it from GitHub_::
99

1010
$ git clone https://github.com/fmfn/UnbalancedDataset.git
1111
$ python setup.py install

examples/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
General examples
44
----------------
55

6-
General-purpose and introductory examples for the unbalanced_dataset.
6+
General-purpose and introductory examples for the `imbalanced-learn` toolbox.

examples/combine/plot_smote_enn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from sklearn.datasets import make_classification
2121
from sklearn.decomposition import PCA
2222

23-
from unbalanced_dataset.combine import SMOTEENN
23+
from imblearn.combine import SMOTEENN
2424

2525
# Generate the dataset
2626
X, y = make_classification(n_classes=2, class_sep=2, weights=[0.1, 0.9],

0 commit comments

Comments
 (0)