10000 Merge pull request #10 from lobpcg/master · glemaitre/scikit-learn@19cbe70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19cbe70

Browse files
authored
Merge pull request #10 from lobpcg/master
update from latest master
2 parents c874474 + 9426b4b commit 19cbe70

File tree

358 files changed

+9662
-16540
lines changed

Some content is hidden

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

358 files changed

+9662
-16540
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,13 @@ workflows:
109109
version: 2
110110
build-doc-and-deploy:
111111
jobs:
112-
- doc
113-
- doc-min-dependencies
114112
- lint
113+
- doc:
114+
requires:
115+
- lint
116+
- doc-min-dependencies:
117+
requires:
118+
- lint
115119
- pypy3:
116120
filters:
117121
branches:

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ _configtest.o.d
7171

7272
# Used by mypy
7373
.mypy_cache/
74+
75+
# files generated from a template
76+
sklearn/utils/seq_dataset.pyx
77+
sklearn/utils/seq_dataset.pxd
78+
sklearn/linear_model/sag_fast.pyx

.travis.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,6 @@ env:
2020

2121
matrix:
2222
include:
23-
# Latest dependencies on macOS with MKL
24-
- env: DISTRIB="conda" PYTHON_VERSION="*" INSTALL_MKL="true"
25-
NUMPY_VERSION="*" SCIPY_VERSION="*" CYTHON_VERSION="*"
26-
PILLOW_VERSION="*" JOBLIB_VERSION="*" COVERAGE=true
27-
language: generic
28-
if: type != cron
29-
os: osx
30-
# Linux environment to test that scikit-learn can be built against
31-
# versions of numpy, scipy with ATLAS that comes with Ubuntu Xenial 16.04
32-
# i.e. numpy 1.11 and scipy 0.17
33-
- env: DISTRIB="ubuntu" PYTHON_VERSION="3.5"
34-
NUMPY_VERSION="1.11.0" SCIPY_VERSION="0.17.0"
35-
PILLOW_VERSION="4.0.0" COVERAGE=true
36-
SKLEARN_SITE_JOBLIB=1 JOBLIB_VERSION="0.11"
37-
if: type != cron
38-
addons:
39-
apt:
40-
packages:
41-
# these only required by the DISTRIB="ubuntu" builds:
42-
- python3-scipy
43-
- libatlas3-base
44-
- libatlas-base-dev
45-
- libatlas-dev
46-
# Linux + Python 3.5 build with OpenBLAS and without SITE_JOBLIB
47-
- env: DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_MKL="false"
48-
NUMPY_VERSION="1.11.0" SCIPY_VERSION="0.17.0" CYTHON_VERSION="*"
49-
PILLOW_VERSION="4.0.0" COVERAGE=true
50-
if: type != cron
51-
# Linux environment to test the latest available dependencies and MKL.
52-
# It runs tests requiring pandas and PyAMG.
53-
# It also runs with the site joblib instead of the vendored copy of joblib.
54-
- env: DISTRIB="conda" PYTHON_VERSION="*" INSTALL_MKL="true"
55-
NUMPY_VERSION="*" SCIPY_VERSION="*" PANDAS_VERSION="*"
56-
CYTHON_VERSION="*" PYAMG_VERSION="*" PILLOW_VERSION="*"
57-
JOBLIB_VERSION="*" COVERAGE=true
58-
CHECK_PYTEST_SOFT_DEPENDENCY="true" TEST_DOCSTRINGS="true"
59-
SKLEARN_SITE_JOBLIB=1 CHECK_WARNINGS="true"
60-
if: type != cron
6123
# Linux environment to test scikit-learn against numpy and scipy master
6224
# installed from their CI wheels in a virtualenv with the Python
6325
# interpreter provided by travis.
@@ -66,7 +28,7 @@ matrix:
6628
if: type = cron OR commit_message =~ /\[scipy-dev\]/
6729

6830
install: source build_tools/travis/install.sh
69-
script:
31+
script:
7032
- bash build_tools/travis/test_script.sh
7133
- bash build_tools/travis/test_docs.sh
7234
- bash build_tools/travis/test_pytest_soft_dependency.sh

appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ install:
6464
# Install the generated wheel package to test it
6565
- "pip install --pre --no-index --find-links dist/ scikit-learn"
6666

67+
# If there is a newer build queued for the same PR, cancel this one.
68+
# credits: JuliaLang developers.
69+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
70+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=500).builds | `
71+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
72+
throw "There are newer queued builds for this pull request, failing early." }
73+
6774
# Not a .NET project, we build scikit-learn in the install step instead
6875
build: false
6976

azure-pipelines.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Adapted from https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml
2+
jobs:
3+
- template: build_tools/azure/posix.yml
4+
parameters:
5+
name: Linux
6+
vmImage: ubuntu-16.04
7+
matrix:
8+
# Linux environment to test that scikit-learn can be built against
9+
# versions of numpy, scipy with ATLAS that comes with Ubuntu Xenial 16.04
10+
# i.e. numpy 1.11 and scipy 0.17
11+
py35_np_atlas:
12+
DISTRIB: 'ubuntu'
13+
PYTHON_VERSION: '3.5'
14+
SKLEARN_SITE_JOBLIB: '1'
15+
JOBLIB_VERSION: '0.11'
16+
# Linux + Python 3.5 build with OpenBLAS and without SITE_JOBLIB
17+
py35_conda_openblas:
18+
DISTRIB: 'conda'
19+
PYTHON_VERSION: '3.5'
20+
INSTALL_MKL: 'false'
21+
NUMPY_VERSION: '1.11.0'
22+
SCIPY_VERSION: '0.17.0'
23+
CYTHON_VERSION: '*'
24+
PILLOW_VERSION: '4.0.0'
25+
COVERAGE: 'true'
26+
# Linux environment to test the latest available dependencies and MKL.
27+
# It runs tests requiring pandas and PyAMG.
28+
# It also runs with the site joblib instead of the vendored copy of joblib.
29+
pylatest_conda:
30+
DISTRIB: 'conda'
31+
PYTHON_VERSION: '*'
32+
INSTALL_MKL: 'true'
33+
NUMPY_VERSION: '*'
34+
SCIPY_VERSION: '*'
35+
PANDAS_VERSION: '*'
36+
CYTHON_VERSION: '*'
37+
PYAMG_VERSION: '*'
38+
PILLOW_VERSION: '*'
39+
JOBLIB_VERSION: '*'
40+
COVERAGE: 'true'
41+
CHECK_PYTEST_SOFT_DEPENDENCY: 'true'
42+
TEST_DOCSTRINGS: 'true'
43+
SKLEARN_SITE_JOBLIB: '1'
44+
CHECK_WARNINGS: 'true'
45+
46+
- template: build_tools/azure/posix.yml
47+
parameters:
48+
name: macOS
49+
vmImage: xcode9-macos10.13
50+
matrix:
51+
pylatest_conda:
52+
DISTRIB: 'conda'
53+
PYTHON_VERSION: '*'
54+
INSTALL_MKL: 'true'
55+
NUMPY_VERSION: '*'
56+
SCIPY_VERSION: '*'
57+
CYTHON_VERSION: '*'
58+
PILLOW_VERSION: '*'
59+
JOBLIB_VERSION: '*'
60+
COVERAGE: 'true'
61+
62+
- template: build_tools/azure/windows.yml
63+
parameters:
64+
name: Windows
65+
vmImage: vs2017-win2016
66+
matrix:
67+
py37_64:
68+
PYTHON_VERSION: '3.7'
69+
CHECK_WARNINGS: 'true'
70+
PYTHON_ARCH: '64'
71+
COVERAGE: 'true'
72+
py35_32:
73+
PYTHON_VERSION: '3.5'
74+
PYTHON_ARCH: '32'

0 commit comments

Comments
 (0)
0