File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change
1
+ variables :
2
+ - name : python.version
3
+ value : ' 3.8'
4
+
1
5
jobs :
2
6
- job : Linux_Sklearn
3
7
pool :
4
8
vmImage : ' ubuntu-20.04'
5
9
steps :
10
+ - task : UsePythonVersion@0
11
+ displayName : ' Use Python $(python.version)'
12
+ inputs :
13
+ versionSpec : ' $(python.version)'
6
14
- script : |
7
- conda update -y -q conda
8
- export FORCE_DAAL4PY_SKLEARN=yes
9
- conda create -q -y -n bench -c conda-forge python=3.7 pandas scikit-learn scikit-learn-intelex
10
- displayName: Create Anaconda environment
11
- - script : |
12
- . /usr/share/miniconda/etc/profile.d/conda.sh
13
- conda activate bench
15
+ pip install -r sklearn_bench/requirements.txt
14
16
python runner.py --configs configs/testing/sklearn.json
15
17
displayName: Run bench
16
18
- job : Linux_XGBoost
17
19
pool :
18
20
vmImage : ' ubuntu-20.04'
19
21
steps :
22
+ - task : UsePythonVersion@0
23
+ displayName : ' Use Python $(python.version)'
24
+ inputs :
25
+ versionSpec : ' $(python.version)'
20
26
- script : |
21
- conda update -y -q conda
22
- conda create -n bench -q -y -c conda-forge python=3.7 pandas xgboost scikit-learn
23
- displayName: Create Anaconda environment
24
- - script : |
25
- . /usr/share/miniconda/etc/profile.d/conda.sh
26
- conda activate bench
27
+ pip install -r xgboost_bench/requirements.txt
27
28
python runner.py --configs configs/testing/xgboost.json --no-intel-optimized
28
29
displayName: Run bench
29
30
- job : Linux_daal4py
58
59
steps :
59
60
- task : UsePythonVersion@0
60
61
inputs :
61
- versionSpec : ' 3.7 '
62
+ versionSpec : ' $(python.version) '
62
63
addToPath : true
63
64
- script : |
64
65
python -m pip install --upgrade pip setuptools
71
72
steps :
72
73
- task : UsePythonVersion@0
73
74
inputs :
74
- versionSpec : ' 3.7 '
75
+ versionSpec : ' $(python.version) '
75
76
addToPath : true
76
77
- script : |
77
78
python -m pip install --upgrade pip setuptools
You can’t perform that action at this time.
0 commit comments