Skip to content

Commit 5621d1d

Browse files
authored
MNT synchronized azure with sklearn (#875)
1 parent 2087e0a commit 5621d1d

Some content is hidden

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

45 files changed

+1111
-657
lines changed

.circleci/config.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22

33
jobs:
4-
python3:
4+
doc:
55
docker:
6-
- image: circleci/python:3.6.1
6+
- image: circleci/python:3.7.7-buster
77
environment:
88
- USERNAME: "glemaitre"
99
- ORGANIZATION: "imbalanced-learn"
@@ -12,7 +12,18 @@ jobs:
1212
- EMAIL: "[email protected]"
1313
- MINICONDA_PATH: ~/miniconda
1414
- CONDA_ENV_NAME: testenv
15+
- OMP_NUM_THREADS: 1
1516
- PYTHON_VERSION: 3
17+
- NUMPY_VERSION: 'latest'
18+
- SCIPY_VERSION: 'latest'
19+
- SKLEARN_VERSION: 'latest'
20+
- MATPLOTLIB_VERSION: 'latest'
21+
- SPHINX_VERSION: 'min'
22+
- PANDAS_VERSION: 'latest'
23+
- SPHINX_GALLERY_VERSION: 'latest'
24+
- NUMPYDOC_VERSION: 'latest'
25+
- SPHINXCONTRIB_BIBTEX_VERSION: 'latest'
26+
- PYDATA_SPHINX_THEME_VERSION: 'latest'
1627
steps:
1728
- add_ssh_keys:
1829
fingerprints:
@@ -44,4 +55,4 @@ workflows:
4455
version: 2
4556
build-doc-and-deploy:
4657
jobs:
47-
- python3
58+
- doc

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ doc/auto_examples/
123123
doc/generated/
124124
doc/references/generated/
125125
doc/bibtex/auto
126+
doc/min_dependency_table.rst
126127

127128
# MacOS
128129
.DS_Store

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ repos:
1414
hooks:
1515
- id: flake8
1616
types: [file, python]
17+
- repo: https://github.com/pre-commit/mirrors-mypy
18+
rev: v0.782
19+
hooks:
20+
- id: mypy
21+
files: sklearn/
22+
additional_dependencies: [pytest==6.2.4]

README.rst

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@
3030
.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
3131
.. _Black: :target: https://github.com/psf/black
3232

33-
33+
.. |PythonMinVersion| replace:: 3.7
34+
.. |NumPyMinVersion| replace:: 1.14.6
35+
.. |SciPyMinVersion| replace:: 1.1.0
36+
.. |ScikitLearnMinVersion| replace:: 0.24.2
37+
.. |MatplotlibMinVersion| replace:: 2.2.3
38+
.. |PandasMinVersion| replace:: 0.25.0
39+
.. |TensorflowMinVersion| replace:: 2.4.3
40+
.. |KerasMinVersion| replace:: 2.4.3
41+
.. |SeabornMinVersion| replace:: 0.9.0
42+
.. |PytestMinVersion| replace:: 5.0.1
3443

3544
imbalanced-learn
3645
================
@@ -54,18 +63,23 @@ Installation
5463
Dependencies
5564
~~~~~~~~~~~~
5665

57-
imbalanced-learn is tested to work under Python 3.6+.
58-
The dependency requirements are based on the last scikit-learn release:
66+
`imbalanced-learn` requires the following dependencies:
67+
68+
- Python (>= |PythonMinVersion|)
69+
- NumPy (>= |NumPyMinVersion|)
70+
- SciPy (>= |SciPyMinVersion|)
71+
- Scikit-learn (>= |ScikitLearnMinVersion|)
72+
73+
Additionally, `imbalanced-learn` requires the following optional dependencies:
74+
75+
- Pandas (>= |PandasMinVersion|) for dealing with dataframes
76+
- Tensorflow (>= |TensorflowMinVersion|) for dealing with TensorFlow models
77+
- Keras (>= |KerasMinVersion|) for dealing with Keras models
5978

60-
* scipy(>=0.19.1)
61-
* numpy(>=1.13.3)
62-
* scikit-learn(>=0.24)
63-
* joblib(>=0.11)
64-
* keras 2 (optional)
65-
* tensorflow (optional)
79+
The examples will requires the following additional dependencies:
6680

67-
Additionally, to run the examples, you need matplotlib(>=2.0.0) and
68-
pandas(>=0.22).
81+
- Matplotlib (>= |MatplotlibMinVersion|)
82+
- Seaborn (>= |SeabornMinVersion|)
6983

7084
Installation
7185
~~~~~~~~~~~~

0 commit comments

Comments
 (0)