
Ridge cost (Geron Ch 4, morie.fn grridg)
Source:R/geron_train_native.R
morie_geron_ridge_cost_grridg.RdJ = MSE + (alpha/2) sum_{i>=1} theta_i^2 with the bias unpenalised;
the gradient is returned alongside.

R/geron_train_native.R
morie_geron_ridge_cost_grridg.RdJ = MSE + (alpha/2) sum_{i>=1} theta_i^2 with the bias unpenalised;
the gradient is returned alongside.