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 1 commit
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
Next Next commit
add scikit-learn-intelex info
  • Loading branch information
Pahandrovich committed Apr 12, 2021
commit c5774a790604dc4564efb43184626c18aa3a9421
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
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