Skip to content

Update readme for sklearnex #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Create a suitable conda environment for each framework to test. Each item in the
* [**scikit-learn**](sklearn_bench#how-to-create-conda-environment-for-benchmarking)

```bash
conda create -n bench -c intel python=3.7 scikit-learn daal4py pandas
conda create -n bench -c intel python=3.7 scikit-learn scikit-learn-intelex pandas
```

* [**daal4py**](daal4py_bench#how-to-create-conda-environment-for-benchmarking)
Expand All @@ -67,7 +67,7 @@ Run `python runner.py --configs configs/config_example.json [--output-file resul

runner options:
* ``configs`` : configuration files paths
* ``no-intel-optimized`` : use no intel optimized version. Now avalible for scikit-learn benchmarks. Default is intel-optimized version.
* ``no-intel-optimized`` : using Scikit-learn without Intel(R) Extension for Scikit-learn*. Now avalible for scikit-learn benchmarks. Default starts with using Intel(R) Extension for Scikit-learn*.
* ``output-file``: output file name for result benchmarks. Default is `result.json`
* ``report``: create an Excel report based on benchmarks results. Need library `openpyxl`.
* ``dummy-run`` : run configuration parser and datasets generation without benchmarks running.
Expand Down
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
- script: |
conda update -y -q conda
export FORCE_DAAL4PY_SKLEARN=yes
conda create -q -y -n bench -c conda-forge python=3.7 pandas scikit-learn daal4py
conda create -q -y -n bench -c conda-forge python=3.7 pandas scikit-learn scikit-learn-intelex
displayName: Create Anaconda environment
- script: |
. /usr/share/miniconda/etc/profile.d/conda.sh
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- script: |
. /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bench
python runner.py --configs configs/testing/daal4py.json
python runner.py --configs configs/testing/daal4py.json --no-intel-optimized
displayName: Run bench
- job: Linux_XGBoost_and_daal4py
pool:
Expand All @@ -50,7 +50,7 @@ jobs:
- script: |
. /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bench
python runner.py --configs configs/testing/daal4py_xgboost.json
python runner.py --configs configs/testing/daal4py_xgboost.json --no-intel-optimized
displayName: Run bench
- job: Pep8
pool:
Expand Down
4 changes: 2 additions & 2 deletions bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ def parse_args(parser, size=None, loop_types=(),

if not params.no_intel_optimized:
try:
from daal4py.sklearn import patch_sklearn
from sklearnex import patch_sklearn
patch_sklearn()
except ImportError:
print('Failed to import daal4py.sklearn.patch_sklearn.'
print('Failed to import sklearnex.patch_sklearn.'
'Use stock version scikit-learn', file=sys.stderr)
params.device = 'None'
else:
Expand Down