{"id":22338,"library":"scikit-learn-intelex","title":"Intel® Extension for Scikit-learn","description":"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.","status":"active","version":"2026.0.0","language":"python","source_language":"en","source_url":"https://github.com/intel/scikit-learn-intelex","tags":["scikit-learn","intel","accelerator","optimization","machine-learning"],"install":[{"cmd":"pip install scikit-learn-intelex","lang":"bash","label":"PyPI"},{"cmd":"conda install -c conda-forge scikit-learn-intelex","lang":"bash","label":"Conda"}],"dependencies":[{"reason":"Core dependency, must be installed separately if not bundled","package":"scikit-learn","optional":true}],"imports":[{"wrong":"from sklearnex import patch_sklearn","symbol":"patch_sklearn","correct":"from sklearnex import patch_sklearn"}],"quickstart":{"code":"from sklearnex import patch_sklearn\npatch_sklearn()\n\nfrom sklearn.linear_model import Ridge\nridge = Ridge(alpha=1.0)\nridge.fit([[0, 0], [1, 1]], [0, 1])\nprint(ridge.predict([[0.5, 0.5]]))","lang":"python","description":"Patch scikit-learn to use Intel-optimized backends, then use scikit-learn API normally."},"warnings":[{"fix":"Ensure patch_sklearn() is called early, typically at module level.","message":"Call patch_sklearn() after importing scikit-learn, but before creating any estimator instances. Patch order matters.","severity":"gotcha","affected_versions":"all"},{"fix":"Avoid relying on dpctl tensor internals; use standard NumPy/PyTorch arrays or dpctl.tensor public API.","message":"Internal dpctl tensor handling functionality is deprecated and will be removed in a future release.","severity":"deprecated","affected_versions":">=2025.11.0"},{"fix":"Verify algorithm support in the official documentation before relying on acceleration.","message":"scikit-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.","severity":"breaking","affected_versions":"all"},{"fix":"Use patch_sklearn() and then import from sklearn.* instead of sklearnex.* for consistency.","message":"If 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'-1.8':35 '1.6':34 '2026.0.0':26 '3.7':29 'acceler':15,42 'algorithm':19 'daal4py':14 'extens':2,8 'former':13 'hardwar':22 'intel':1,7,21,41 'learn':6,12,18,33,40,46 'machin':45 'machine-learn':44 'month':36 'optim':43 'patch':24 'python':28 'releas':37 'scikit':5,11,17,32,39 'scikit-learn':4,10,16,31,38 'support':27 'version':25 'via':23","created_at":"2026-04-27T17:04:38.811522+00:00","updated_at":"2026-04-27T17:04:38.811522+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"/tmp/tmpf79pfgok/venv/lib/python3.12/site-packages/daal4py/sklearn/_utils.py\", line 35, in <module>\n    from packaging.version import Version\nModuleNotFoundError: No module named 'packaging'\n\nDuring handling of the above exception, another exception occurre"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2026.1.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.intel.com/content/www/us/en/developer/tools/oneapi/scikit-learn.html","github":"https://github.com/uxlfoundation/scikit-learn-intelex","docs":"https://uxlfoundation.github.io/scikit-learn-intelex/","changelog":null,"pypi":"https://pypi.org/project/scikit-learn-intelex/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}