Data Science, Machine Learning, 100daysofmlcode, 100daysofmlwriting.
penalty applied to the coefficients, the mathematical model for calculating predictions is the same. The difference lies in how the coefficients are calculated. Specifically, an identity matrix multiplied by the regularization strength is added to the XTX term: (X^T * X + I*λ)^(-1)*X^T*y. In code