Computer
Which method is used to prevent overfitting in machine learning models?
Explanation
Regularization adds a penalty to large model weights to prevent overfitting.
It helps the model generalize better on unseen data.
Common techniques include L1 (Lasso) and L2 (Ridge) regularization.