scikit-learn-intelex
scikit-learn-intelex copied to clipboard
TypeError: _check_sample_weight() got an unexpected keyword argument 'copy'
TypeError: _check_sample_weight() got an unexpected keyword argument 'copy'
pip install scikit-learn-intelex
from sklearnex import patch_sklearn
patch_sklearn()
when using the function fit(), the error shows.
Hi @guankaer could you please provide more details about python env. python, sklearn, sklearnex versions
Hi @guankaer, could you provide some code + OS, python, sklearn and sklearnex versions to reproduce this issue, please?
Hi, I faced the same problem and it seems that the root cause is that here in case if sklearn version is greater or equal to 0.24, 'copy' argument is used, however it was introduced for _check_sample_weight only in 0.24.2. So this problem occurs only for sklearn 0.24 and 0.24.1
Thanks - the expectation is that latest past releases would be used.