What is scikit-learn-intelex
mainscikit-learn-intelex (sklearnex) is an open-source software accelerator built on top of scikit-learn and the oneDAL libraries. It accelerates machine learning workflows by replacing selected scikit-learn algorithm calls with optimized versions from oneDAL.
Key features include:
- Hardware Optimization: Leverages SIMD instructions and cache structures of modern hardware.
- Linear Algebra Acceleration: Uses the
oneMKLlibrary instead of the defaultOpenBLASused byscikit-learn. - High Compatibility: Instead of just mimicking the API,
sklearnexclasses inherit directly fromscikit-learnclasses. This ensures they share the same attributes and methods as the stock version. - Version Resilience: It is designed to be compatible with the last 4 minor releases of
scikit-learn. It uses runtime checks to adjust its behavior (e.g., setting or omitting attributes) based on the specificscikit-learnversion installed to maintain full API compatibility.