Question: What is the difference between L1 and L2 regularization?Answer: L1 regularization adds the absolute values of the coefficients to the cost function, encouraging sparsity, while L2 regularization adds the squared values, penalizing large coefficients. L1 tends to produce sparse models, while L2 prevents extreme values in the coefficients. |
Guardar para repaso
Guarda este elemento en marcadores, marcalo como dificil o agregalo a un conjunto de repaso.
Inicia sesion para guardar marcadores, preguntas dificiles y conjuntos de repaso.
Es util? Si No
Lo mas util segun los usuarios:
- Explain the concept of feature engineering.
- What is the purpose of regularization in machine learning?
- Explain the term \'hyperparameter\' in the context of machine learning.
- What is the purpose of the activation function in a neural network?
- Explain the term \'precision\' in the context of classification.