
Ultimate access to all questions.
In a Spark MLlib implementation, you are working with a large dataset and need to build a linear regression model. Which of the following regularization techniques can be applied to the model to prevent overfitting and improve its generalization performance?
A
L1 regularization, which adds a penalty term to the loss function based on the absolute values of the model parameters.
B
L2 regularization, which adds a penalty term to the loss function based on the squared values of the model parameters.
C
Both A and B, as Spark MLlib supports both L1 and L2 regularization techniques for linear regression models.
D
None of the above, as regularization techniques are not applicable to linear regression models in Spark MLlib.