Registry / ai-ml / daal4py

daal4py

JSON →
library2024.7.0pypypiunverified

daal4py provides a convenient Python API to Intel® oneAPI Data Analytics Library (oneDAL) for accelerating machine learning and data analysis. Current stable version is 2024.7.0 on PyPI, with newer releases (2025.11.0) available via Intel's Extension for Scikit-learn. Release cadence is approximately monthly.

pip install daal4py
INSTALL
IMPORT
SIG · DAAL4PY
D
daal4py
ai-mlpythonv2024.7.0
Install
7.4s avg
Import
Disk
131MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2024.7.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 7.4s · import 0.000s · 129MB
131MB installed
● package 131MB
Code
Verified usage

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

daal4py
import daal4py
import daal4py
sklearnex
import sklearnex
import daal4py
onedal
import onedal
import daal4py

Simple K-Means using oneDAL native API with SYCL context.

import numpy as np import daal4py from daal4py.oneapi import sycl_context # Example: K-Means clustering (oneDAL native) data = np.random.rand(100, 5).astype(np.float64) with sycl_context('cpu'): n_clusters = 3 algo = daal4py.kmeans(nClusters=n_clusters, maxIterations=100) result = algo.compute(data) print(result.centroids)
Debug
Known issues
breakingdaal4py 2020.x has a different API compared to newer versions. Upgrade may require code changes.
fix
Refer to migration guide: https://intelpython.github.io/daal4py/migration.html
affects: <2021.0
deprecatedInternal dpctl tensor handling functionality is deprecated and will be removed in future releases.
fix
Use standard numpy or dpctl arrays directly.
affects: >=2025.11.0
gotchadaal4py objects (e.g., from compute) must not be reused after passing to another compute; create fresh instances.
fix
Always create a new algorithm object for each call.
affects: all
gotchaSYCL context must be set before calling any daal4py compute, otherwise it defaults to CPU host.
fix
Use 'with sycl_context("gpu"):' to ensure GPU usage.
affects: all
Upgrade
Version history
2024.7.0latest on PyPI · released Sep 17, 2024
Audit
Dependencies
numpyrequiredCore dependency for array operations
scikit-learnoptionalFor compatibility and integration with scikit-learn estimators
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
daal4py — pip install daal4py · libregistry