nnpiv.rkhs.ApproxRKHS2IVL2CV
- class nnpiv.rkhs.ApproxRKHS2IVL2CV(kernel_approx='nystrom', n_components=10, kernel='rbf', gamma=2, degree=3, coef0=1, kernel_params=None, delta_scale='auto', delta_exp='auto', alpha_scales='auto', n_alphas=30, cv=6, expand_alpha_grid=True)[source]
Cross-validated approximate common-penalty Appendix L.1 / Algorithm 2 RKHS estimator, with
mu_prime = mu = alpha.- Parameters
kernel_approx (str) – Kernel approximation method (‘nystrom’ or ‘rbfsampler’).
n_components (int, float, or array-like) – Component count, sample fraction, or candidate grid. Values in (0, 1] are sample fractions with a floor of 10 and are then capped at
n_samples; integer-like values greater than 1 are fixed component counts.kernel (str or callable) – Kernel function or string identifier.
gamma (str, float, or array-like) – Automatic RBF coefficient, fixed coefficient, or candidate coefficient grid; the RBF kernel is
exp(-gamma * ||x - x'||^2).degree (int) – Degree for polynomial kernels.
coef0 (float) – Zero coefficient for polynomial kernels.
kernel_params (dict) – Additional parameters for the kernel.
delta_scale (str or float) – Scale of the critical radius.
delta_exp (str or float) – Exponent of the critical radius.
alpha_scales (str or array-like) – Scale of the regularization parameter.
n_alphas (int) – Number of alpha scales to try.
cv (int) – Number of folds for cross-validation.
expand_alpha_grid (bool) – Whether to expand the alpha grid when the CV optimum lies on a boundary.