13.2. Array API support (experimental)
The array API specification defines a standard API for all array manipulation libraries with a NumPy-like API.
Some scikit-learn estimators that primarily rely on NumPy (as opposed to using
Cython) to implement the algorithmic logic of their fit, predict or
transform methods can be configured to accept any Array API compatible input
data structures and automatically dispatch operations to the underlying namespace
instead of relying on NumPy.
At this stage, this support is considered experimental, must be enabled
explicitly by the array_api_dispatch configuration and assumes that the latest
versions libraries are installed. See below for details.
The following video provides an overview of the standard’s design principles and how it facilitates interoperability between array libraries:
Scikit-learn on GPUs with Array API by at PyData NYC 2023.