scikit-learn-intelex icon indicating copy to clipboard operation
scikit-learn-intelex copied to clipboard

Issue on page /global-patching.html

Open vpekar opened this issue 3 years ago • 3 comments
trafficstars

Using the versions available via PyPI and Anaconda, trying to apply a global patch gives the error:

>>> from sklearnex import patch_sklearn
>>> patch_sklearn(global_patch=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: patch_sklearn() got an unexpected keyword argument 'global_patch'

vpekar avatar Dec 10 '21 13:12 vpekar

Hi @vpekar, Which version of scikit-learn-intelex are you using?

Pahandrovich avatar Dec 10 '21 14:12 Pahandrovich

it's the one currently available via conda: 2021.20210714.120553 daal4py: 2021.3.0 scikit-learn: 0.24.2

vpekar avatar Dec 10 '21 14:12 vpekar

Global patching is only supported from version 2021.4. You can update the version using one of three conda channels: intel, conda-forge, main or using PyPi. conda install -c intel scikit-learn-intelex conda install -c conda-forge scikit-learn-intelex conda install scikit-learn-intelex pip install scikit-learn-intelex We will add information about which version this feature is supported from.

Pahandrovich avatar Dec 10 '21 15:12 Pahandrovich