This question evaluates understanding of core machine learning concepts including regularization effects (L1 vs L2), loss function and gradient properties, PCA for dimensionality reduction, and Random Forest training and hyperparameter considerations, in the Machine Learning domain for a Software Engineer role.
Assume standard supervised learning with linear models for regression/classification, PCA for dimensionality reduction, and Random Forests for tabular data. Answer the following:
Compare L1 (Lasso) and L2 (Ridge) regularization in terms of:
Explain how to choose loss functions for:
Describe PCA’s objective (variance maximization vs. reconstruction error minimization), the fitting and transform steps, and how to select the number of components.
Explain how Random Forests are trained, their bias–variance trade-off, the limits of impurity-based feature importance, and key hyperparameters (with brief tuning guidance).
Login required