INTERMEDIATEFrequently Tested 4 min read 11 views
Machine Learning: Bias-Variance, L1/L2 Regularization & Confusion Matrix Metrics
Expected test MSE decomposition, why L1 Lasso induces sparsity while L2 Ridge shrinks smoothly, Precision/Recall/F1 & PCA.
Ridge () vs. Lasso () Regularization
- Ridge Regression ( penalty ): Closed-form solution . Always invertible for even when is singular (collinearity)! Shrinks weights toward zero asymptotically without setting them to exact zero.
- Lasso Regression ( penalty ): Diamond-shaped constraint polytope has sharp corners on coordinate axes drives irrelevant feature weights to exact (automatic Feature Selection!).
Key Formulas Summary
Expected Squared Test Error Decomposition
Note: Irreducible noise sigma^2 cannot be beaten by any model
F1-Score (Harmonic Mean of Precision & Recall)
Note: TPR (Recall) = TP/(TP+FN); FPR = FP/(FP+TN) for ROC curve
#GATE DA#Machine Learning#Lasso#Ridge#PCA
Practice Questions on This Chapter (2)
Q1GATE DA 2024MCQMEDIUM
+2M β’ -0.67
In a binary classification task, a model achieves and . What is the -score of the classifier (rounded to two decimal places)?
β‘ Click an option above to verify instantly
Q2GATE DA MSQMSQMEDIUM
+2M β’ 0 Neg
Which of the following statements regarding Regularization and Ensemble Learning are TRUE?
βοΈ Multiple Select Question β pick one or more options, then click Check Answer.