PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Machine Learning/Amazon

Explain core ML fundamentals

Last updated: Mar 29, 2026

Quick Overview

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.

  • medium
  • Amazon
  • Machine Learning
  • Software Engineer

Explain core ML fundamentals

Company: Amazon

Role: Software Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Compare L1 versus L2 regularization, including their effects on sparsity, optimization geometry, and robustness to outliers. Explain how to choose loss functions for regression/classification (e.g., MSE, MAE, logistic/cross-entropy) and discuss gradient properties. Describe PCA’s objective (variance maximization vs. reconstruction error), fitting/transform steps, and selecting the number of components. Explain how Random Forests are trained, their bias–variance trade-off, limits of impurity-based feature importance, and key hyperparameters.

Quick Answer: 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.

Related Interview Questions

  • Explain Core ML Interview Concepts - Amazon (hard)
  • Evaluate NLP Classification Models - Amazon (easy)
  • Explain overfitting, regularization, and LLM techniques - Amazon (medium)
  • Explain NLP/RL concepts used in LLM agents - Amazon (hard)
  • Design and evaluate a RAG system - Amazon (easy)
Amazon logo
Amazon
Jul 15, 2025, 12:00 AM
Software Engineer
Technical Screen
Machine Learning
4
0

Machine Learning Fundamentals: Regularization, Losses, PCA, and Random Forests

Assume standard supervised learning with linear models for regression/classification, PCA for dimensionality reduction, and Random Forests for tabular data. Answer the following:

1) L1 vs. L2 Regularization

Compare L1 (Lasso) and L2 (Ridge) regularization in terms of:

  • Sparsity of learned coefficients
  • Optimization geometry and differentiability
  • Robustness to outliers (clarify what kind of outliers and how the penalty interacts with the loss)

2) Choosing Loss Functions and Gradient Properties

Explain how to choose loss functions for:

  • Regression: MSE vs. MAE (and mention Huber if relevant)
  • Classification: logistic/cross-entropy (and note hinge/focal if relevant) Discuss their gradient properties, optimization behavior, and sensitivity to outliers.

3) PCA

Describe PCA’s objective (variance maximization vs. reconstruction error minimization), the fitting and transform steps, and how to select the number of components.

4) Random Forests

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).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon Machine Learning•Software Engineer Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.