0
0
ML Pythonml~5 mins

Elastic Net regularization in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Elastic Net regularization?
Elastic Net regularization is a technique that combines both L1 (Lasso) and L2 (Ridge) penalties to improve model performance and feature selection.
Click to reveal answer
intermediate
Why do we use Elastic Net instead of just Lasso or Ridge?
Elastic Net is used because it balances the strengths of Lasso (feature selection) and Ridge (handling multicollinearity), making it effective when features are correlated.
Click to reveal answer
beginner
What are the two penalty terms in Elastic Net?
Elastic Net uses a mix of L1 penalty (sum of absolute values of coefficients) and L2 penalty (sum of squared coefficients).
Click to reveal answer
intermediate
How does Elastic Net help with correlated features?
Elastic Net tends to select groups of correlated features together, unlike Lasso which might pick only one, improving model stability.
Click to reveal answer
advanced
Write the Elastic Net loss function formula.
The Elastic Net loss function is: <br>Loss = RSS + α * (λ * L1_penalty + (1 - λ) * L2_penalty), <br>where RSS is residual sum of squares, α controls overall strength, and λ balances L1 and L2 penalties.
Click to reveal answer
What does the L1 penalty in Elastic Net encourage?
AIgnoring correlated features
BShrinking coefficients towards zero but not zeroing them
CSparsity by setting some coefficients to zero
DIncreasing model complexity
Which problem does Elastic Net help solve better than Lasso alone?
AHandling correlated features
BFitting non-linear models
CReducing training time
DIncreasing number of features
In Elastic Net, what does the parameter λ control?
AThe learning rate
BThe size of the dataset
CThe number of features
DThe balance between L1 and L2 penalties
What happens if λ = 1 in Elastic Net?
AIt becomes Lasso regression
BIt becomes Ridge regression
CNo regularization is applied
DModel overfits
Which of these is NOT a benefit of Elastic Net?
AHandling multicollinearity
BGuaranteeing zero training error
CFeature selection
DImproving model generalization
Explain in your own words how Elastic Net regularization works and why it is useful.
Think about how Lasso and Ridge work and how Elastic Net mixes them.
You got /3 concepts.
    Describe the role of the parameters α and λ in Elastic Net regularization.
    Consider how these parameters influence the penalty terms.
    You got /3 concepts.