API Reference#
This is the class and function reference of cuML. Please refer to the User Guide for further details, as the raw specifications of classes and functions may not be enough to give full guidelines on their use.
Module Configuration#
Output Data Type Configuration#
Object |
Description |
Module |
|---|---|---|
Set global output type for cuML estimators. |
||
Context manager to temporarily set output type. |
Preprocessing, Metrics, and Utilities#
Model Selection and Data Splitting#
Object |
Description |
Module |
|---|---|---|
K-Fold cross-validator. |
||
Split arrays into random train and test subsets. |
Feature and Label Encoding (Single-GPU)#
Object |
Description |
Module |
|---|---|---|
Binarize labels in a one-vs-all fashion. |
||
Encode target labels with value between 0 and n_classes-1. |
||
Encode categorical features as a one-hot numeric array. |
||
Target Encoder for regression and classification targets. |
Feature Scaling and Normalization (Single-GPU)#
Object |
Description |
Module |
|---|---|---|
Scale each feature by its maximum absolute value. |
||
Transform features by scaling each feature to a given range. |
||
Normalize samples individually to unit norm. |
||
Scale features using statistics that are robust to outliers. |
||
Standardize features by removing the mean and scaling to unit variance. |
Other preprocessing methods (Single-GPU)#
Object |
Description |
Module |
|---|---|---|
Applies transformers to columns of an array or DataFrame. |
||
Generate polynomial and interaction features. |
||
Univariate imputer for completing missing values. |
Feature Extraction (Single-GPU)#
Object |
Description |
Module |
|---|---|---|
Convert a collection of text documents to a matrix of token counts. |
||
Convert a collection of text documents to a matrix of token occurrences. |
||
Convert a collection of raw documents to a matrix of TF-IDF features. |
Dataset Generation (Single-GPU)#
Object |
Description |
Module |
|---|---|---|
Generate isotropic Gaussian blobs for clustering. |
||
Generate a random classification problem. |
||
Generate a random regression problem. |
Metrics (regression, classification, and distance)#
Object |
Description |
Module |
|---|---|---|
Accuracy classification score. |
||
Compute confusion matrix. |
||
Compute Area Under the ROC Curve. |
Regression and Classification#
Object |
Description |
Module |
|---|---|---|
Naive Bayes classifier for multivariate Bernoulli models. |
||
Naive Bayes classifier for categorical features. |
||
Coordinate Descent solver. |
||
Complement Naive Bayes classifier. |
||
ElasticNet regression. |
||
Forest Inference for fast prediction of tree-based models. |
||
Gaussian Naive Bayes. |
||
Kernel Ridge Regression. |
||
K-Nearest Neighbors classifier. |
||
K-Nearest Neighbors regressor. |
||
Lasso regression. |
||
Ordinary least squares Linear Regression. |
||
Linear Support Vector Classification. |
||
Linear Support Vector Regression. |
||
Logistic Regression classifier. |
||
Mini Batch SGD Classifier. |
||
Mini Batch SGD Regressor. |
||
Naive Bayes classifier for multinomial models. |
||
One-vs-one multiclass strategy. |
||
One-vs-the-rest multiclass strategy. |
||
Quasi-Newton solver. |
||
Random Forest classifier. |
||
Random Forest regressor. |
||
Ridge regression. |
||
Stochastic Gradient Descent solver. |
||
C-Support Vector Classification. |
||
Epsilon-Support Vector Regression. |
Clustering#
Object |
Description |
Module |
|---|---|---|
Agglomerative Clustering. |
||
Density-Based Spatial Clustering of Applications with Noise. |
||
Hierarchical DBSCAN clustering. |
||
K-Means clustering. |
||
Spectral clustering. |
Dimensionality Reduction and Manifold Learning#
Object |
Description |
Module |
|---|---|---|
Reduce dimensionality through Gaussian random projection. |
||
Incremental Principal Component Analysis. |
||
Principal Component Analysis. |
||
Reduce dimensionality through sparse random projection. |
||
Spectral Embedding for non-linear dimensionality reduction. |
||
Dimensionality reduction using truncated SVD. |
||
t-Distributed Stochastic Neighbor Embedding. |
||
Uniform Manifold Approximation and Projection. |
Covariance Estimation#
Object |
Description |
Module |
|---|---|---|
Ledoit-Wolf shrinkage covariance estimator. |
Neighbors#
Object |
Description |
Module |
|---|---|---|
Kernel Density Estimation. |
||
K-Nearest Neighbors classifier. |
||
K-Nearest Neighbors regressor. |
||
Unsupervised nearest neighbors. |
Time Series#
Model Explainability#
Object |
Description |
Module |
|---|---|---|
SHAP Kernel Explainer. |
||
SHAP Permutation Explainer. |
Multi-Node, Multi-GPU Algorithms#
Object |
Description |
Module |
|---|---|---|
Multi-GPU Coordinate Descent solver. |
||
Multi-GPU DBSCAN clustering. |
||
Multi-GPU ElasticNet regression. |
||
Multi-GPU K-Means clustering. |
||
Multi-GPU K-Nearest Neighbors classifier. |
||
Multi-GPU K-Nearest Neighbors regressor. |
||
Multi-GPU Lasso regression. |
||
Multi-GPU Linear Regression. |
||
Multi-GPU Multinomial Naive Bayes. |
||
Multi-GPU Nearest Neighbors. |
||
Multi-GPU Principal Component Analysis. |
||
Multi-GPU Random Forest classifier. |
||
Multi-GPU Random Forest regressor. |
||
Multi-GPU Ridge Regression. |
||
Multi-GPU Truncated SVD. |
||
Multi-GPU UMAP. |
cuml.accel#
Object |
Description |
Module |
|---|---|---|
Check if cuML acceleration is enabled. |
||
Install cuML acceleration hooks. |
||
Check if an object is a cuML proxy. |
||
Profile cuML acceleration. |
Experimental#
Object |
Description |
Module |
|---|---|---|
SHAP Tree Explainer. |