You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GridSearchCV & RandomizedSearchCV GPU support #2406
Originally posted by idkSeth March 8, 2025
In order to offload to GPU, input data needs to be passed as dpctl.tensor.usm_ndarray as per the guide.
GridSearchCV and RandomizedSearchCV is not patched and when trying to use them with the input data as dpctl.tensor.usm_ndarray, an indexing error is raised.
Can searching be patched to allow for hyper-parameter searching on GPU/CPU with usm_ndarray?
Activity
david-cortes-intel commentedon Aug 8, 2025
This is now solved on the dpctl side: IntelPython/dpctl#2128
Should be possible to use the classes from sklearn with sklearnex estimators and dpctl/dpnp arrays after version 0.21 of dpctl.
david-cortes-intel commentedon Oct 28, 2025
This is now possible to do with array API classes.
Example with DPNP (>= 0.19):
Example with PyTorch: