Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
2a46c04
CI Dynamically select unpack directory (#18957)
alfaro96 Dec 2, 2020
f83cd72
MNT remove .github/workflows/sync_pull_request.yml (#18951)
ogrisel Dec 2, 2020
ba6edeb
DOC Fix broken link to SLEPs in the Governance docs (#18967)
leouieda Dec 4, 2020
d877775
DOC Updates confusion_matrix.py to match parameter in code(#18938)
NadimKawwa Dec 4, 2020
2d74116
DOC Typo addressed in confusion_matrix docstring (#18979)
mcalcote Dec 10, 2020
22d3b61
DOC Update logos from Consortium funders (#18991)
cmarmo Dec 14, 2020
8c2846f
BLD Add clean command to skip list (#18999)
alfaro96 Dec 14, 2020
c437c5b
FIX change stats.mode to Counter for better performance with object d…
DavidKatz-il Dec 14, 2020
6873365
DOC Fix doc of defaults in sklearn.utils.sparsefuncs.py (#18025)
franslarsson Dec 15, 2020
fb1c096
DOC explain how to use custom edge bins in KBinsDiscretizer (#18972)
Dec 15, 2020
6bfb7f0
CI Build wheels for the ARM64 architecture (#18782)
alfaro96 Dec 15, 2020
a036b7a
BUG Fixes fetch_kddcup99 for return_X_y and as_frame (#19011)
thomasjpfan Dec 16, 2020
8dfa786
DOC fix citations for de Leeuw in IsotonicRegression (#18952)
nfultz Dec 16, 2020
f089c55
Trigger [cd build] to test #18782
ogrisel Dec 16, 2020
db19d77
DOC fix multiclass AUC formulas in user guide (#18559)
RamyaNP Dec 16, 2020
6edb211
CI Avoid Travis stuck on failure (#19018)
alfaro96 Dec 17, 2020
905a2b9
DOC Revises a sentence in the description of RFE (#19033)
des137 Dec 18, 2020
4b88e1a
MNT skip preprocessing.rst when pandas is not installed (#19016)
glemaitre Dec 18, 2020
a6babaf
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages (#19005)
glemaitre Dec 18, 2020
2bda271
CI Removes scipy-dev from travis (#19036)
thomasjpfan Dec 19, 2020
8e03f7a
DOC correct shape of returned ndarray in BinaryTree.query (#18969)
Kot271828 Dec 19, 2020
fe7b822
DOC removed algorithm parameter of CCA (#19047)
NicolasHug Dec 20, 2020
4ebce2d
[DOC] Improved consistency of the docstring of an ignored y parameter…
rohan-paul Dec 21, 2020
fa27362
DOC Fix typo in experimental features documentation (#19053)
alfaro96 Dec 21, 2020
77a938b
MNT silence spurious FitFailedWarning in test_search_cv (#18833)
ogrisel Dec 21, 2020
697d93d
DOC fix simple typo, variales -> variables (#19054)
timgates42 Dec 21, 2020
43d7082
MNT remove docstring check in pypy build (#19057)
glemaitre Dec 22, 2020
3aa728d
CI Use Travis secret tokens to upload the ARM64 wheels (#19017)
alfaro96 Dec 22, 2020
d9b359c
Trigger [cd build] to test the result of #19017
ogrisel Dec 22, 2020
db56983
DOC 0.24.0 release highlights formatting (#19059)
ogrisel Dec 22, 2020
ca2ee9c
CI Fixes scipy-dev build instance (#19062)
thomasjpfan Jan 3, 2021
f68d9aa
DOC fix year release 0.24.1
glemaitre Jan 19, 2021
9f899e9
DOC Generalise norm notation in NMF docstring. (#19209)
cmarmo Jan 19, 2021
ff4240e
[DOC] Add scikeras to related projects. (#19226)
cmarmo Jan 21, 2021
aedc5b6
FIX validate handle_unkown strategies in OrdinalEncoder (#19234)
glemaitre Jan 22, 2021
6af16bb
MNT replace master with main (#19237)
adrinjalali Jan 22, 2021
53c206c
[DOC] Clarify the docstring of dict learning about the inits (#19227)
jeremiedbb Jan 22, 2021
aff72a0
FIX BIRCH: self.partial_fit -> self.partial_fit_ (#19231)
jeremiedbb Jan 23, 2021
437b9ea
FIX check_decision_proba_consistency random failure (#19225)
ogrisel Jan 23, 2021
7b602f9
FIX Fixes test_compare_to_elki failure (#19221)
thomasjpfan Jan 25, 2021
ab0c611
DOC replace plot_confusion_matrix in See Also section (#19277)
lucyleeow Jan 26, 2021
6389597
DOC update Keras description in related projects (#19265)
adriangb Jan 26, 2021
9eb1a26
DOC Add URL to reference of Minka paper used in PCA (#19207)
hamogu Jan 26, 2021
04ed639
DOC Add translation section in related projects (#19001)
cmarmo Jan 26, 2021
c19332b
DOC Fixed typo in a comment (#19284)
ayushblaze Jan 27, 2021
3fcd8a7
DOC Fixes formating in feature_extraction module (#19274)
thomasjpfan Jan 27, 2021
7a41bb5
DOC clarify docstrings + fixes links to references in linear models (…
thomasjpfan Jan 27, 2021
3903826
DOC Correct dataframe shape in fetch_covtype documentation (#19288)
dmallia17 Jan 28, 2021
5b54a56
DOC use notebook style and diagram for feature selection example (#18…
glemaitre Jan 28, 2021
d7beb3f
DOC remove duplicated line of code in linear_model.rst (#19292)
ilos-vigil Jan 28, 2021
353e896
DOC Add log-link to Gamma and Poisson Regressor (#19287)
zitorelova Jan 29, 2021
0217c0f
removing incrementalPCA example in basePCA (#19298)
venkyyuvy Jan 29, 2021
c69fea4
CLN Fixes PendingDeprecationWarning in CountVectorizer (#19299)
thomasjpfan Jan 30, 2021
10f336a
TST Ignores PendingDeprecationWarning in tests (#19301)
thomasjpfan Jan 30, 2021
0a3ace7
TST Filter out warning for pyamg using deprecated behavior (#19312)
thomasjpfan Feb 1, 2021
75a161a
CI Check only title for regex labeling (#19303)
thomasjpfan Feb 1, 2021
50b848e
DOC Balanced accuracy score adjusted doc fix (#19309)
agamemnonc Feb 1, 2021
60555f8
CI Skips test in loading_other_datasets.rst based on env flag (#19295)
thomasjpfan Feb 1, 2021
2abeae8
DOC fix ungrammatical sentence in doc of SelectFromModel (#19240)
EdwinWenink Feb 1, 2021
cdaa729
FIX Don't overwrite input sample_weight in LogisticRegression (#19182)
m7142yosuke Feb 1, 2021
edf9079
EXA use pipeline in feature engineering example with RF,RT,GBDT (#18835)
glemaitre Feb 1, 2021
57166a5
DOC Updates css consistent admonition styling (#19249)
thomasjpfan Feb 1, 2021
c0e81e1
DOC Remove algorithm flag for PLS regression (#19204)
BaptBillard Feb 1, 2021
8c56929
DOC use diagram and simplify pipeline in stacking example (#18830)
glemaitre Feb 1, 2021
22d078c
CI Update ICC install commands (#19329)
jeremiedbb Feb 3, 2021
5ba925f
Fix min_pos when all negative + speed up (#19328)
jeremiedbb Feb 3, 2021
c0922ca
DOC correct behavior of precompute with sparse input (#19348)
Vlasovets Feb 4, 2021
3fd87f1
FIX Add `with` context manager to open file from OpenML in test file …
mjkanji Feb 6, 2021
bdf39ae
DOC rename Birch to BIRCH in docs (#19368)
elateifsara Feb 6, 2021
6299bc2
EXA remove warning when setting yticks in permutation importances exa…
Bunkus1 Feb 7, 2021
44dce55
DOC fix a typo in _kmeans.py (#19398)
cleardusk Feb 8, 2021
4cf3ced
DOC simplify SVM margin illustration by chaging plotting style (#19387)
amy12xx Feb 8, 2021
1fe2dc5
DOC Documents n_features_in_ in cross_decomposition (#19351)
thomasjpfan Feb 8, 2021
c3facb9
EXA improve example of forest feature importances (#19377)
azihna Feb 8, 2021
5e85f2f
MNT specify main branch in asv config for the publish command (#19408)
jeremiedbb Feb 9, 2021
1ed36e2
DOC clarify variance estimation in PCA implementation (#19378)
CeeThinwa Feb 9, 2021
5b5bcb5
DOC Explicitly remove support for `precompute='auto'` for Lasso (#19412)
jjerphan Feb 9, 2021
c3de690
FIX index sample_weight in least_absolute_deviation loss in HistGradi…
vadim-ushtanit Feb 10, 2021
a9c4588
DOC Evaluating estimator performance - grammar fix (#19419)
peter-dye Feb 10, 2021
a6171d8
DOC Better information about transductive and inductive cluster metho…
putschblos Feb 10, 2021
e1b4495
TST Fixes logistic & partial_dependence test for 32bit wheels (#19402)
thomasjpfan Feb 12, 2021
6f7ab40
FIX Converted output to int64 in random_projection *_min_dim (#19374)
fortune-uwha Feb 12, 2021
98205b6
TST Fixes docstring ordering and test_docstring_parameters (#19048)
thomasjpfan Feb 12, 2021
e5b28db
DOC oob_score is only available when bootstrap=True (#19444)
hirzel Feb 15, 2021
3986907
FIX Gives a unique id to html visualization (#19417)
thomasjpfan Feb 15, 2021
af43343
DOC Fix typo in LDA User Guide (#19468)
bdpedigo Feb 17, 2021
8bbfd1b
DOC Fix closing backtick in IterativeImputer (#19476)
alfaro96 Feb 17, 2021
ac32754
DOC Remove extra word from LOF docstring (#19477)
Okroshiashvili Feb 17, 2021
6e31afd
DOC Fix broken link to wikipedia in semi-supervised UG (#19481)
pnb Feb 18, 2021
5284876
DOC clarify that n_iter_no_change is not just for early-stopping for …
NicolasHug Feb 18, 2021
3b11a40
DOC Replace onnxmltools by sklearn-onnx (#19484)
sdpython Feb 18, 2021
28bfac2
DOC update whats new 0.24 for backport (#19434)
glemaitre Feb 18, 2021
fc4b219
DOC enet_path docstring: fix sub/superscript swap (#19493)
jpreiss Feb 19, 2021
95e3857
DOC fix missing closing quote in user guide
ogrisel Feb 19, 2021
68ad239
DOC Fixed typos in documentation (#19511)
Ashish013 Feb 20, 2021
56fdc9d
EXA Fix overlapping titles in clustering overview (#19506)
putschblos Feb 22, 2021
da48368
MNT Set non-interactive installation mode for the pypy job (#19461)
alfaro96 Feb 22, 2021
82c7c53
TST Does not use cache in openml test (#19534)
thomasjpfan Feb 23, 2021
2914a0b
MNT Clear travis installation script (#19532)
alfaro96 Feb 25, 2021
b0928ae
DOC Update calibration.rst (#19557)
egkiastas Feb 25, 2021
c0e93bf
DOC Fix documentation on pickle portability (#19561)
rth Feb 27, 2021
6f71aa8
FIX Do not call get_feature_names for empty column selections (#19579)
thomasjpfan Feb 27, 2021
487156b
FIX race condition in get_data_home causing FileExistsError (#19560)
ogrisel Mar 1, 2021
3491591
FIX Deep copy criterion in trees to fix concurrency bug (#19580)
samdbrice Mar 2, 2021
5cd95ba
MAINT Update _arff.py (#19597)
cmarmo Mar 2, 2021
75c3285
Add BNP Paribas Cardif testimonial. (#19586)
lesteve Mar 3, 2021
bbdd4b0
DOC Fixes spelling mistake in _kmeans.py (#19634)
RichardScottOZ Mar 7, 2021
fe8f95a
MNT Make setup.py command parsing more robust (#19650)
geofft Mar 10, 2021
76ffcd6
DOC Use term 'black people' instead of 'blacks' in Boston descr (#19661)
ogrisel Mar 11, 2021
98eec43
BUG Fixes verbose > 2 for grid search (#19659)
thomasjpfan Mar 11, 2021
047ccd2
DOC Fix typo in plot_multi_metric_evaluation example (#19675)
alessiamarcolini Mar 15, 2021
87b8d94
[MRG] Fix documentation for russelrao formula (#19695)
stestagg Mar 17, 2021
be5b083
CI Use conda instead of pip to install anaconda-client (#19528)
alfaro96 Mar 17, 2021
0c7c615
MAINT Python 3.9 in badge on README.rst (#19702)
ogrisel Mar 17, 2021
18975c3
DOC Added utils.gen_batches in documentation (#19688)
seanbenhur Mar 17, 2021
fb3e03f
Fix typo in elastic net docstring. (#19711)
mblondel Mar 18, 2021
e01ba98
DOC Correct scorer documentation (#19720)
joclement Mar 19, 2021
49da24e
DOC Add scikit-survival to related projects (#19728)
sebp Mar 19, 2021
44f2c11
DOC Move Sacred to "Experimentation frameworks" (#19730)
sebp Mar 19, 2021
b4e913d
DOC Fix doc regarding required_parameters (#19725)
jeremiedbb Mar 19, 2021
3c83257
DOC Update broken link in conftest.py (#19736)
JohanWork Mar 21, 2021
aa122c9
DOC Fix doc for single linkage in feature agglomeration (#19715)
cliffordEmmanuel Mar 21, 2021
2ac6e3a
DOC Fix typo in KDE metric docstring default value (#19735)
jhlegarreta Mar 21, 2021
6a075ed
DOC Fix load iris datasets (#19729)
maliozer Mar 21, 2021
604d1bc
DOC Fixed typo in cross_val_predict docstring (#19739)
guiweber Mar 21, 2021
396334a
DOC Clarified n_jobs parallelization in plot_partial_dependence (#19750)
InterferencePattern Mar 23, 2021
26115bf
DOC Fix typo in Truncated SVD documentation (#19765)
waijean Mar 25, 2021
035646d
ENH num_features for a 1d collection of dicts is undefined (#19740)
thomasjpfan Mar 29, 2021
d7052d7
FIX Approximate nearest neighbors in TSNE example (#19809)
TomDLT Apr 2, 2021
1db724c
DOC Use the canonical Wikipedia link (#19819)
chrisyeh96 Apr 4, 2021
3f523f8
Add APHP to the Consortium sponsors (#19823)
cmarmo Apr 6, 2021
37cb20d
DOC Fixes style for versionadded (#19817)
thomasjpfan Apr 6, 2021
39acc6a
DOC Fix incorrect 0-1 scaling in the RBM example (#19363)
Necior Apr 8, 2021
ef9b608
DOC Update attribute docstrings in _multilayer_perceptron.py (#19595)
Shooter23 Apr 9, 2021
6599faa
DOC Fix versionchanged/versionadded in OneHotEncoder (#16562)
rth Apr 9, 2021
9b20598
DOC add explicit message regarding shuffling in default CV (#19776)
azihna Apr 9, 2021
44866fb
FIX MultiOutputRegressor correctly ducktypes fitted estimators (#19308)
thomasjpfan Apr 9, 2021
ff82721
FIX missing space in import in svm/_base.py (#19852)
glemaitre Apr 9, 2021
42bf65a
DOC Fixed typo in clustering.rst (#19863)
analuizaypessoa-zz Apr 11, 2021
78eb1c1
FIX BaseSuccessiveHalving class groups support (#19847)
xiaoyuchai Apr 12, 2021
cdda65c
DOC Fix typo in common_pitfalls.rst (#19867)
viniciusriosfuck Apr 12, 2021
fd5baec
DOC Fix typos plot_column_transformer_mixed_types.py (#19871)
viniciusriosfuck Apr 13, 2021
a62e526
Update who may propose a new triage member. (#19870)
cmarmo Apr 13, 2021
4532c06
DOC make documentation consistent regarding types in _encoders.py (#1…
glemaitre Apr 13, 2021
f7dff91
DOC Clarify documentation for spectral clustering (#19795)
chrisyeh96 Apr 13, 2021
ca19431
FIX convert cv_results_ values to numpy array in SuccessiveHalving (#…
NicolasHug Apr 14, 2021
7c0a328
DOC Adds consistence in docs for univariate selection metrics (#19904)
glemaitre Apr 16, 2021
444dc75
DOC Fix the description of some features in load_diabetes (#19366)
hongshaoyang Apr 16, 2021
dc6c087
DOC add FAQ entry for the many linear model classes (#19861)
lorentzenchr Apr 16, 2021
ebb477d
DOC Fixes links in outlier_detection.html (#19917)
ishansmishra Apr 18, 2021
19d6b5a
FIX Fixes unknown handling for str dtypes in OrdinalEncoder.transform…
thomasjpfan Apr 18, 2021
2791df1
DOC fix early stopping description in MLP (#19818)
isaacknjama Apr 19, 2021
bd889fa
DOC use math mode in r2_score function (#19921)
alfaro96 Apr 19, 2021
c3c9b44
DOC Fixes typo in doc/modules/cross_validation.rst (#19925)
he7d3r Apr 19, 2021
9a83359
DOC improve learning-rate AdaBoost estimator (#19919)
bharatr21 Apr 20, 2021
10845b2
EXA Fix plot_map_data_to_normal.py example legend (#19930)
lesteve Apr 20, 2021
f480b59
DOC Remove misleading "linear kernel" statements (#19937)
TFiFiE Apr 20, 2021
47eab5b
FIX fix a bug in KernelPCA.inverse_transform (#19732)
kstoneriv3 Apr 20, 2021
2a85b22
ENH Enrich docstring on `inverse_transform` of `KernelPCA` (#19910)
kstoneriv3 Apr 20, 2021
43b444e
FIX OneHotEncoder.fit no longer alters the drop parameter (#19924)
thomasjpfan Apr 20, 2021
3f3dec0
FIX prevent division by zero with constant target in GPR (#19703)
afonari Apr 21, 2021
41a8d1f
FIX Encoder should accept categories having dtype='S' (#19727)
andrewdelong Apr 21, 2021
8d7387f
FIX Fixes regression in CCA due to change of cutoff values in SciPy …
thomasjpfan Apr 22, 2021
94f234d
DOC order whats new 0.24.2
glemaitre Apr 22, 2021
a0b84c3
DOC move whats new entry from 1.0 to 0.24
glemaitre Apr 22, 2021
f1cac91
Trigger CD [cd build]
glemaitre Apr 22, 2021
46e8540
PEP8 [cd build]
glemaitre Apr 22, 2021
fb8c2b6
FIX Fixes PLSRegression regression for constant Yk (#19922)
thomasjpfan Apr 23, 2021
8e27ac5
FIX mislabelling multiclass target when labels is provided in top_k_a…
joclement Apr 26, 2021
7f99624
DOC retroactive changed model entry (#19992)
jeremiedbb Apr 27, 2021
241596f
CI Fixes MAC ar build error (#19968)
thomasjpfan Apr 26, 2021
bcc2dec
CI Lowers precision for doctest in LinearRegression (#19988)
thomasjpfan Apr 26, 2021
eda2153
Trigger [ci build]
glemaitre Apr 27, 2021
fefd804
FIX Use cho_solve when return_std=True for GaussianProcessRegressor (…
iwhalvic Apr 27, 2021
b7fb1ed
Trigger [cd build]
glemaitre Apr 27, 2021
8329476
[cd build] Trigger
glemaitre Apr 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ jobs:
pypy3:
docker:
- image: condaforge/miniforge3
environment:
# Avoid the interactive dialog when installing tzdata
- DEBIAN_FRONTEND: noninteractive
steps:
- restore_cache:
keys:
Expand Down
5 changes: 0 additions & 5 deletions .github/labeler.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/scripts/label_title_regex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Labels PRs based on title. Must be run in a github action with the
pull_request_target event."""
from ghapi.all import context_github
from ghapi.all import GhApi
from ghapi.all import user_repo
from ghapi.all import github_token
import re

owner, repo = user_repo()
pull_request = context_github.event.pull_request
title = pull_request.title

regex_to_labels = [
(r"\bDOC\b", "Documentation"),
(r"\bCI\b", "Build / CI")
]

labels_to_add = [
label for regex, label in regex_to_labels
if re.search(regex, title)
]

if labels_to_add:
api = GhApi(owner=owner, repo=repo, token=github_token())
api.issues.add_labels(pull_request.number, labels=labels_to_add)
18 changes: 11 additions & 7 deletions .github/workflows/labeler-title-regex.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: Pull Request Regex Title Labeler
on:
pull_request_target:
types: [opened]
types: [opened, edited]

jobs:

labeler:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Check Labels
id: labeler
continue-on-error: true
uses: jimschubert/labeler-action@v2
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
python-version: '3.9'
- name: Install ghapi
run: pip install -Uq ghapi
- name: Label pull request
run: python .github/scripts/label_title_regex.py
env:
CONTEXT_GITHUB: ${{ toJson(github) }}
34 changes: 0 additions & 34 deletions .github/workflows/sync_pull_request.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ env:

jobs:
include:
- python: 3.7
env:
- CHECK_WARNING=true
- BUILD_WITH_ICC=true
if: type = cron OR commit_message =~ /\[icc-build\]/

# Manual trigger of linux/arm64 tests in PR without triggering the full
# wheel building process for all the Python versions.
- python: 3.9
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
.. |Nightly wheels| image:: https://github.com/scikit-learn/scikit-learn/workflows/Wheel%20builder/badge.svg?event=schedule
.. _`Nightly wheels`: https://github.com/scikit-learn/scikit-learn/actions?query=workflow%3A%22Wheel+builder%22+event%3Aschedule

.. |PythonVersion| image:: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue
.. _PythonVersion: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue
.. |PythonVersion| image:: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9-blue
.. _PythonVersion: https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9-blue

.. |PyPi| image:: https://badge.fury.io/py/scikit-learn.svg
.. _PyPi: https://badge.fury.io/py/scikit-learn
Expand Down
4 changes: 2 additions & 2 deletions asv_benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

// List of branches to benchmark. If not provided, defaults to "master
// (for git) or "default" (for mercurial).
// "branches": ["main"], // for git
"branches": ["main"],
// "branches": ["default"], // for mercurial

// The DVCS being used. If not set, it will be automatically
Expand Down Expand Up @@ -73,7 +73,7 @@
//
"matrix": {
"numpy": [],
"scipy": [],
"scipy": [],
"cython": [],
"joblib": [],
"threadpoolctl": []
Expand Down
22 changes: 22 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,28 @@ jobs:
# Here we make sure, that they are still run on a regular basis.
SKLEARN_SKIP_NETWORK_TESTS: '0'

# Check compilation with intel C++ compiler (ICC)
- template: build_tools/azure/posix.yml
parameters:
name: Linux_Nightly_ICC
vmImage: ubuntu-18.04
dependsOn: [git_commit, linting]
condition: |
and(
succeeded(),
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')),
or(eq(variables['Build.Reason'], 'Schedule'),
contains(dependencies['git_commit']['outputs']['commit.message'], '[icc-build]')
)
)
matrix:
pylatest_conda_mkl:
DISTRIB: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
COVERAGE: 'false'
BUILD_WITH_ICC: 'true'

# Will run all the time regardless of linting outcome.
- template: build_tools/azure/posix.yml
parameters:
Expand Down
24 changes: 23 additions & 1 deletion build_tools/azure/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ if [[ "$DISTRIB" == "conda" ]]; then
# sklearn/svm/_libsvm.cpython-38-darwin.so,
# 2): Symbol not found: _svm_check_parameter error
TO_INSTALL="$TO_INSTALL compilers>=1.0.4,!=1.1.0 llvm-openmp"
else
# Without openmp, we use the system clang. Here we use /usr/bin/ar
# instead because llvm-ar errors
export AR=/usr/bin/ar
fi
fi
make_conda $TO_INSTALL
Expand Down Expand Up @@ -96,7 +100,11 @@ elif [[ "$DISTRIB" == "conda-pip-scipy-dev" ]]; then
python -m pip install -U pip
echo "Installing numpy and scipy master wheels"
dev_anaconda_url=https://pypi.anaconda.org/scipy-wheels-nightly/simple
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url numpy scipy pandas
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url numpy pandas

# issue with metadata in scipy dev builds https://github.com/scipy/scipy/issues/13196
# --use-deprecated=legacy-resolver needs to be included
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url scipy --use-deprecated=legacy-resolver
pip install --pre cython
setup_ccache
echo "Installing joblib master"
Expand Down Expand Up @@ -144,6 +152,20 @@ if [[ "$DISTRIB" == "conda-pip-latest" ]]; then
# environment:
pip install --verbose --editable .
else
if [[ "$BUILD_WITH_ICC" == "true" ]]; then
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
source /opt/intel/oneapi/setvars.sh

# The "build_clib" command is implicitly used to build "libsvm-skl".
# To compile with a different compiler, we also need to specify the
# compiler for this command
python setup.py build_ext --compiler=intelem -i build_clib --compiler=intelem
fi
# Use the pre-installed build dependencies and build directly in the
# current environment.
python setup.py develop
Expand Down
4 changes: 4 additions & 0 deletions build_tools/azure/test_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ elif [[ "$DISTRIB" == "ubuntu" ]]; then
source $VIRTUALENV/bin/activate
fi

if [[ "$BUILD_WITH_ICC" == "true" ]]; then
source /opt/intel/oneapi/setvars.sh
fi

make test-doc
4 changes: 4 additions & 0 deletions build_tools/azure/test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ elif [[ "$DISTRIB" == "ubuntu" ]] || [[ "$DISTRIB" == "ubuntu-32" ]]; then
source $VIRTUALENV/bin/activate
fi

if [[ "$BUILD_WITH_ICC" == "true" ]]; then
source /opt/intel/oneapi/setvars.sh
fi

python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import scipy; print('scipy %s' % scipy.__version__)"
Expand Down
6 changes: 5 additions & 1 deletion build_tools/github/upload_anaconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ else
ANACONDA_TOKEN="$SCIKIT_LEARN_STAGING_UPLOAD_TOKEN"
fi

pip install git+https://github.com/Anaconda-Server/anaconda-client
# Install Python 3.8 because of a bug with Python 3.9
export PATH=$CONDA/bin:$PATH
conda create -n upload -y python=3.8
source activate upload
conda install -y anaconda-client

# Force a replacement if the remote file already exists
anaconda -t $ANACONDA_TOKEN upload --force -u $ANACONDA_ORG dist/artifact/*
Expand Down
11 changes: 10 additions & 1 deletion build_tools/travis/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ if [[ $BUILD_WHEEL == true && $TRAVIS_EVENT_TYPE != pull_request ]]; then
ANACONDA_TOKEN="$SCIKIT_LEARN_STAGING_UPLOAD_TOKEN"
fi

pip install git+https://github.com/Anaconda-Server/anaconda-client
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh"
wget $MINICONDA_URL -O miniconda.sh
MINICONDA_PATH=$HOME/miniconda
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH

# Install Python 3.8 because of a bug with Python 3.9
export PATH=$MINICONDA_PATH/bin:$PATH
conda create -n upload -y python=3.8
source activate upload
conda install -y anaconda-client

# Force a replacement if the remote file already exists
anaconda -t $ANACONDA_TOKEN upload --force -u $ANACONDA_ORG wheelhouse/*.whl
Expand Down
25 changes: 2 additions & 23 deletions build_tools/travis/install_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ ccache --max-size 100M --show-stats
# to setup a conda-based environment instead
deactivate

if [[ $TRAVIS_CPU_ARCH == arm64 ]]; then
# Different Miniconda URL for ARM64 architectures
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh"
else
MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
fi
MINICONDA_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh"

# Install Miniconda
wget $MINICONDA_URL -O miniconda.sh
Expand All @@ -62,23 +57,7 @@ python --version
python -c "import numpy; print(f'numpy {numpy.__version__}')"
python -c "import scipy; print(f'scipy {scipy.__version__}')"

if [[ $BUILD_WITH_ICC == true ]]; then
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
sudo apt-get install intel-oneapi-icc
source /opt/intel/oneapi/setvars.sh

# The "build_clib" command is implicitly used to build "libsvm-skl".
# To compile with a different compiler, we also need to specify the
# compiler for this command
python setup.py build_ext --compiler=intelem -i build_clib --compiler=intelem
else
pip install -e .
fi

pip install -e .
python setup.py develop

ccache --show-stats
Expand Down
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Even if empty this file is useful so that when running from the root folder
# ./sklearn is added to sys.path by pytest. See
# https://docs.pytest.org/en/latest/pythonpath.html for more details. For
# example, this allows to build extensions in place and run pytest
# https://docs.pytest.org/en/latest/explanation/pythonpath.html for more
# details. For example, this allows to build extensions in place and run pytest
# doc/modules/clustering.rst and use sklearn from the local folder rather than
# the one from site-packages.

Expand Down
6 changes: 6 additions & 0 deletions doc/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ Grisel, Guillaume Lemaitre, Jérémie du Boisberranger and Chiara Marmo.
:width: 70pt
:target: https://www.dataiku.com/

.. |aphp| image:: images/logo_APHP_text.png
:width: 150pt
:target: https://aphp.fr/

.. |inria| image:: images/inria-logo.jpg
:width: 100pt
:target: https://www.inria.fr
Expand All @@ -185,6 +189,8 @@ Grisel, Guillaume Lemaitre, Jérémie du Boisberranger and Chiara Marmo.
+---------+----------+
| |dataiku| |
+---------+----------+
| |aphp| |
+---------+----------+
| |
+---------+----------+
| |inria| |
Expand Down
2 changes: 1 addition & 1 deletion doc/common_pitfalls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ preformance by letting the estimator use a different RNG on each fold. This
is done by passing a `RandomState` instance (or `None`) to the estimator
initialization.

When we pass an integer, the estimator will use the same RNG on each fold: if
When we pass an integer, the estimator will use the same RNG on each fold:
if the estimator performs well (or bad), as evaluated by CV, it might just be
because we got lucky (or unlucky) with that specific seed. Passing instances
leads to more robust CV results, and makes the comparison between various
Expand Down
7 changes: 7 additions & 0 deletions doc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from os.path import exists
from os.path import join
from os import environ
import warnings

from sklearn.utils import IS_PYPY
Expand Down Expand Up @@ -48,6 +49,12 @@ def setup_loading_other_datasets():
raise SkipTest("Skipping loading_other_datasets.rst, "
"pandas not installed")

# checks SKLEARN_SKIP_NETWORK_TESTS to see if test should run
run_network_tests = environ.get("SKLEARN_SKIP_NETWORK_TESTS", '1') == "0"
if not run_network_tests:
raise SkipTest("Skipping loading_other_datasets.rst, tests can be "
"enabled by settting SKLEARN_SKIP_NETWORK_TESTS=0")


def setup_compose():
try:
Expand Down
11 changes: 6 additions & 5 deletions doc/developers/advanced_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ repository:

.. prompt:: bash $

wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB

Then, add the oneAPI repository to your APT repositories:

Expand All @@ -490,11 +490,12 @@ Then, add the oneAPI repository to your APT repositories:
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update

Install ICC, packaged under the name ``intel-oneapi-icc``:
Install ICC, packaged under the name
``intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic``:

.. prompt:: bash $

sudo apt-get install intel-oneapi-icc
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic

Before using ICC, you need to set up environment variables:

Expand Down
Loading