InterviewStack.io LogoInterviewStack.io

ML Fundamentals Assessment Questions

Assessment of foundational machine learning concepts and techniques, including supervised and unsupervised learning, common algorithms, evaluation metrics, bias-variance trade-offs, overfitting, feature engineering, and model selection. Used for screening ML knowledge in interviews, training, or onboarding within ML & AI contexts.

HardSystem Design
29 practiced
Design a production ML system for near-real-time fraud detection with these constraints: 5,000 inference QPS, P50 latency <50ms, access to both streaming real-time features and daily batch features, online updates to model once per day, and strict monitoring and rollback requirements. Provide architecture components, storage choices, feature serving strategy, and trade-offs.
MediumTechnical
25 practiced
Write a Python function that takes validation-set predicted probabilities and true labels and returns the threshold that maximizes F1 score. Describe how you would avoid overfitting by selecting a threshold and how to apply thresholding in production safely.
MediumTechnical
31 practiced
Implement the forward pass of batch normalization (training mode and inference mode) in PyTorch-like pseudocode. Your implementation should update running mean/variance in training and use them in evaluation. Explain the role of gamma (scale) and beta (shift) parameters and numerical stability considerations.
HardTechnical
31 practiced
Compare uncertainty estimation approaches for deep learning models: Bayesian neural networks, MC-dropout, deep ensembles, and temperature scaling/Platt scaling for calibration. Distinguish aleatoric and epistemic uncertainty, compare computational costs, and recommend practical approaches for production.
HardTechnical
26 practiced
Explain VC dimension and its implications for sample complexity and generalization. Give concrete examples: VC dimension of linear classifiers in d dimensions, and the intuition for VC dimension of decision trees. Discuss limitations of VC dimension theory for modern over-parameterized neural networks.

Unlock Full Question Bank

Get access to hundreds of ML Fundamentals Assessment interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.