API¶
List of functions and classes in Himalaya.
Backend¶
Public functions in himalaya.backend
.
Set the backend using a global variable, and return the backend module. |
|
Get the current backend module. |
|
Built-in mutable sequence. |
Kernel ridge¶
Public functions and classes in himalaya.kernel_ridge
.
Estimators¶
Estimators compatible with the scikit-learn
API.
Kernel ridge regression. |
|
Kernel ridge regression with efficient cross-validation over alpha. |
|
Weighted kernel ridge regression. |
|
Multiple-kernel ridge regression with cross-validation. |
|
Transform tabular data into a kernel. |
|
Applies transformers to columns of an array, ending with kernelizers. |
|
Construct a ColumnKernelizer from the given transformers. |
Solver functions¶
Solve kernel ridge regression with a grid search over alphas. |
|
Solve kernel ridge regression using eigenvalues decomposition. |
|
Solve kernel ridge regression using conjugate gradient. |
|
Solve kernel ridge regression using conjugate gradient. |
|
Solve weighted kernel ridge regression using gradient descent. |
|
Solve weighted kernel ridge regression using conjugate gradient. |
|
Solve weighted kernel ridge regression using Neumann series. |
|
Solve bilinear kernel ridge regression with cross-validation. |
|
Solve multiple kernel ridge regression using random search. |
Helpers¶
Generate samples from a Dirichlet distribution. |
|
Compute predictions, typically on a test set. |
|
Compute predictions, typically on a test set, and compute the score. |
|
Compute the primal weights for kernel ridge regression. |
|
Compute the primal weights for weighted kernel ridge regression. |
Kernels¶
Compute the linear kernel between X and Y. |
|
Compute the polynomial kernel between X and Y. |
|
Compute the rbf (gaussian) kernel between X and Y. |
|
Compute the sigmoid kernel between X and Y. |
|
Compute cosine similarity between samples in X and Y. |
|
Center a kernel matrix. |
Lasso¶
Public functions and classes in himalaya.lasso
.
Solver functions¶
Solves the sparse group Lasso. |
|
Solves the sparse group Lasso, selecting hyperparameters over cross-validation. |
Ridge¶
Public functions and classes in himalaya.ridge
.
Estimators¶
Estimators compatible with the scikit-learn
API.
Ridge regression. |
|
Ridge regression with efficient cross-validation over alpha. |
|
Group ridge regression with cross-validation. |
|
Applies transformers to columns of an array, and does not stack them. |
|
Construct a ColumnTransformerNoStack from the given transformers. |
Solver functions¶
Solve ridge regression using SVD decomposition. |
|
Solve ridge regression with a grid search over alphas. |
|
Solve group ridge regression using random search on the simplex. |
|
Solve group ridge regression using random search on the simplex. |
Other modules¶
Public functions and classes in other minor modules.
Progress bar¶
Generate a command-line progress bar. |
|
Simple API for progress_bar. |
Scoring functions¶
L2 negative loss, computed for multiple predictions. |
|
R2 score, computed for multiple predictions (e.g. |
|
Correlation score, computed for multiple predictions. |
|
Split the R2 score into individual components using the product measure. |
|
Split the R2 score into individual components using relative weights. |
|
Split the correlation score into individual components. |
Utils¶
Compute Lipschitz constants of gradients of linear regression problems. |
|
Utility to generate datasets for the gallery of examples. |
Visualization¶
Plot a diagnostic plot for the selected alphas during cross-validation. |