The conversation between human and AI assistant.
What is ridge regression?
How does L2 regularization work exactly?
L2 regularization adds a penalty term to the cost function of the linear regression model, which forces the model to keep the coefficients small. This helps prevent overfitting by reducing the variance of the model.