Registry / ai-ml / scikit-learn-intelex

scikit-learn-intelex

JSON →
library2026.1.0pypypiunverified

Intel® Extension for Scikit-learn (formerly daal4py) accelerates scikit-learn algorithms on Intel hardware via patching. Version 2026.0.0 supports Python >=3.7 and scikit-learn 1.6-1.8. Monthly releases.

pip install scikit-learn-intelex
INSTALL
IMPORT
SIG · SCIKIT-LEARN-INTEL
S
scikit-learn-intelex
ai-mlpythonv2026.1.0
Install
13.5s avg
Import
4653ms
Disk
299MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 13.5s · import 3.722s · 288MB
299MB installed
● package 299MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

patch_sklearn
from sklearnex import patch_sklearn
from sklearnex import patch_sklearn

Patch scikit-learn to use Intel-optimized backends, then use scikit-learn API normally.

from sklearnex import patch_sklearn patch_sklearn() from sklearn.linear_model import Ridge ridge = Ridge(alpha=1.0) ridge.fit([[0, 0], [1, 1]], [0, 1]) print(ridge.predict([[0.5, 0.5]]))
Debug
Known issues
gotchaCall patch_sklearn() after importing scikit-learn, but before creating any estimator instances. Patch order matters.
fix
Ensure patch_sklearn() is called early, typically at module level.
affects: all
deprecatedInternal dpctl tensor handling functionality is deprecated and will be removed in a future release.
fix
Avoid relying on dpctl tensor internals; use standard NumPy/PyTorch arrays or dpctl.tensor public API.
affects: >=2025.11.0
breakingscikit-learn-intelex does not support all scikit-learn algorithms (e.g., some ensemble methods still run on original scikit-learn). Check the list of supported algorithms.
fix
Verify algorithm support in the official documentation before relying on acceleration.
affects: all
gotchaIf you import from sklearnex estimators directly (e.g., from sklearnex.linear_model import Ridge), it may not be patched correctly and can conflict with patched scikit-learn.
fix
Use patch_sklearn() and then import from sklearn.* instead of sklearnex.* for consistency.
affects: all
Upgrade
Version history
2026.1.0latest on PyPI · released Jun 10, 2026
Audit
Dependencies
scikit-learnoptionalCore dependency, must be installed separately if not bundled
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
scikit-learn-intelex — pip install scikit-learn-intelex · libregistry