KernelPCA validation ledger#
Status: validated for believe14 0.1.0.
Primary source: Schölkopf, Smola, and Müller (1998), doi:10.1162/089976698300017467.
Definition: center the training Gram matrix as
Kc = J K J; retain positive eigenpairs. Training coordinates areV sqrt(lambda)and query coordinates are the centered cross-kernel multiplied byV/sqrt(lambda).Linear-kernel stability: training features are centered before their Gram matrix is formed, and query features use the stored training mean. This is algebraically identical to Gram double-centering while avoiding catastrophic cancellation under a large common feature offset.
Kernels: linear, RBF, integer-degree polynomial, and precomputed. RBF/poly
gammadefaults to1/n_features. A significantly indefinite centered kernel or insufficient positive numerical rank is rejected, not repaired.Out of sample: feature inputs use the fitted kernel; precomputed queries supply exactly one kernel column per training observation. Both use training centering statistics, implementing the Nyström projection. Training centering first removes row and column anchor effects. Query centering is independent for each row. In precomputed mode the pairwise tag lets scikit-learn slice both axes correctly during cross-validation.
Evidence: the linear-kernel training Gram equals the literal centered feature Gram, remains stable under a large common translation, and training cross-kernel projection reproduces fitted coordinates. Symmetry, shape, definiteness, and rank failures are tested. Rdimtools is not an oracle.
Complexity:
O(n^2 p + n^3)time andO(np + n^2)peak memory; symbols follow the method catalog. Rdimtools is not an oracle.