Kernel-ridge hat matrix
= Kernel-ridge hat matrix
{title2=$H_\lambda$}
For kernel matrix $K$ and objective normalized as $n^{-1}\lVert Y-f\rVert_2^2+\lambda\lVert f\rVert_{\mathcal H}^2$, the fitted values are $H_\lambda Y$, where
$$
H_\lambda=K(K+n\lambda I)^{-1}.
$$