Skip to main content

Module kernel_transform

Module kernel_transform 

Source
Expand description

Kernel transformation utilities for preprocessing and normalization.

This module provides utilities for transforming kernel matrices, including:

  • Kernel normalization (normalize to unit diagonal)
  • Kernel centering (for kernel PCA)
  • Kernel standardization

These transformations are essential for many kernel-based algorithms.

Structs§

NormalizedKernel
Wrapper that creates a normalized version of any kernel.

Functions§

center_kernel_matrix
Center a kernel matrix by removing the mean in feature space.
normalize_kernel_matrix
Normalize a kernel matrix to have unit diagonal entries.
standardize_kernel_matrix
Standardize a kernel matrix (normalize then center).