Supported Algorithms
Hint
While not every parameter or combination of parameters from estimators is supported in the Extension for scikit-learn*, attempting to perform an unsupported operation will by default result in executing code from stock scikit-learn when no accelerated routine is available (referred to as a fallback throughout the documentation), thereby ensuring that any valid scikit-learn workflow will continue working under patching.
To verify whether accelerated routines are used for some operation or not, enable verbose mode. See Verbose Mode for details.
Note
Beyond some parameter combinations from estimators not being supported, some features from scikit-learn are not supported as a whole - see Unsupported scikit-learn features.
The Extension for scikit-learn* offers accelerated versions of the following classes and functions from scikit-learn, with some limitations described below:
on CPU
Classification
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
|
Negative weights are not supported. |
|
|
|
Negative weights are not supported. |
|
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
|
Multi-output and sparse data are not supported. |
Number of classes must be at least 2. |
|
All parameters are supported except:
|
Sparse data is not supported. |
Solver |
|
All parameters are supported except:
|
Sparse data is not supported. |
Estimator is only available in preview mode. |
Regression
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
|
Negative weights are not supported. |
||
|
Negative weights are not supported. |
||
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Nothing will be printed if |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Nothing will be printed if |
|
|
Multi-output and sparse data are not supported |
||
All parameters are supported except:
|
Only dense data is supported. |
||
All parameters are supported except:
|
Only dense data is supported. |
||
All parameters are supported except:
|
Sparse data is not supported. |
Estimator is only available in preview mode. |
|
All parameters are supported except:
|
Sparse data is not supported. |
Estimator is only available in preview mode. |
Clustering
Algorithm |
Parameters |
Data formats |
|---|---|---|
All parameters are supported except:
|
No limitations |
|
All parameters are supported except:
|
Only dense data is supported |
Dimensionality Reduction
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Sparse data is not supported |
||
Sparse data is not supported |
Estimator is only available in preview mode. |
||
All parameters are supported except:
|
Sparse data is not supported for the initialization and distance calculation stages. |
Anomaly Detection
Algorithm |
Parameters |
Data formats |
|---|---|---|
|
Sparse data is not supported |
Nearest Neighbors
Algorithm |
Parameters |
Data formats |
|---|---|---|
|
Sparse data is not supported |
Other Tasks
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported |
Only dense data is supported |
Estimator is only available in preview mode. |
|
All parameters are supported |
Supported data formats:
|
Sample weights are not supported for CSR data format |
|
All parameters are supported |
Supported data formats:
|
||
All parameters are supported except:
|
Supported data formats:
|
||
All parameters are supported except:
|
Only binary |
on GPU
See also
Classification
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Only dense data is supported. Negative weights are not supported. |
Only binary classification is supported. If passing |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
All parameters are supported except:
|
Only dense data is supported. |
Number of classes must be at least 2.
The following methods are not accelerated by Extension for scikit-learn* and will
fall back to scikit-learn on CPU, returning NumPy arrays when using
array API inputs:
|
|
All parameters are supported except:
|
No limitations. |
Only binary classification is supported. |
Regression
Algorithm |
Parameters |
Data formats |
|---|---|---|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
|
All parameters are supported except:
|
Only dense data is supported.
The following methods are not accelerated by Extension for scikit-learn* and will
fall back to scikit-learn on CPU, returning NumPy arrays when using
array API inputs:
|
|
All parameters are supported except:
|
Only dense data is supported. |
|
All parameters are supported except:
|
Only dense data is supported. |
Clustering
Algorithm |
Parameters |
Data formats |
|---|---|---|
All parameters are supported except:
|
No limitations |
|
All parameters are supported except:
|
Only dense data is supported |
Dimensionality Reduction
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Sparse data is not supported |
||
Sparse data is not supported |
Estimator is only available in preview mode. Additional parameter |
Anomaly Detection
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Only dense data is supported |
If using target_offload, some computations outside of neighbor calculations (related to thresholds for outlierness) might happen on CPU. |
Nearest Neighbors
Algorithm |
Parameters |
Data formats |
|---|---|---|
All parameters are supported except:
|
Only dense data is supported.
The following methods are not accelerated by Extension for scikit-learn* and will
fall back to scikit-learn on CPU, returning NumPy arrays when using
array API inputs:
|
|
All parameters are supported except:
|
Only dense data is supported. |
Other Tasks
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported |
Only dense data is supported |
Estimator is only available in preview mode. |
|
All parameters are supported |
Supported data formats:
|
Sample weights are not supported for CSR data format. |
SPMD Support
See also
Classification
Algorithm |
Parameters & Methods |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
Number of classes must be at least 2. Nothing will be printed if |
|
All parameters are supported except:
|
Only dense data is supported. |
Number of classes must be at least 2. |
|
All parameters are supported except:
|
Method |
Only binary classification is supported |
Regression
Algorithm |
Parameters & Methods |
Data formats |
|---|---|---|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
|
All parameters are supported except:
|
Multi-output and sparse data are not supported. Missing values and infinite values are not supported. |
|
All parameters are supported except:
|
Only dense data is supported |
|
All parameters are supported except:
|
Only dense data is supported. |
Clustering
Algorithm |
Parameters & Methods |
Data formats |
|---|---|---|
All parameters are supported except:
|
No limitations |
|
All parameters are supported except:
|
Only dense data is supported |
Dimensionality Reduction
Algorithm |
Parameters & Methods |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported except:
|
Sparse data is not supported |
||
All parameters are supported except:
|
Sparse data is not supported |
Estimator is only available in preview mode. |
Nearest Neighbors
Algorithm |
Parameters |
Data formats |
|---|---|---|
All parameters are supported except:
|
Only dense data is supported |
Other Tasks
Algorithm |
Parameters |
Data formats |
Other limitations |
|---|---|---|---|
All parameters are supported |
Only dense data is supported |
Estimator is only available in preview mode. |
|
All parameters are supported |
Supported data formats:
|
Sample weights not supported for CSR data format |