Interview Q&A · questions with model answers

Machine Learning Fundamentals Interview Questions

Part of the study plan for: Machine Learning Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked What is the difference between supervised, unsupervised and reinforcement learning?

    Supervised learning trains on labelled examples to predict a target (price, spam or not). Unsupervised learning finds structure in unlabelled data (clusters, lower-dimensional representations,…

  2. Most asked Compare decision trees, random forests and gradient boosting.

    A decision tree splits data with if/else rules; it's interpretable but overfits easily. A random forest averages many deep trees trained on random samples and feature subsets, which reduces…

  3. What is regularisation, and how do L1 and L2 differ?

    Regularisation adds a penalty on model complexity to the loss so the model prefers simpler solutions and overfits less. L2 (ridge) penalises squared weights and shrinks them all smoothly; L1 (lasso)…

  4. What is the difference between parameters and hyperparameters, and how do you tune hyperparameters?

    Parameters are learned from data during training (weights, split points). Hyperparameters are set before training and control how learning happens (learning rate, tree depth, regularisation…

  5. What are data drift and concept drift, and how do you monitor for them?

    Data drift (covariate shift) is a change in the input distribution, such as more mobile users or new products. Concept drift is a change in the relationship between inputs and the target, such as…

  6. What is the difference between bagging and boosting?

    Bagging trains many models independently on bootstrap samples and averages them, which mainly reduces variance (random forests). Boosting trains models sequentially, each focusing on the previous…

  7. When would you choose a simple model over a deep learning model?

    Choose a simple model (linear or logistic regression, gradient-boosted trees) for tabular data, small datasets, strict latency or cost limits, or when you must explain decisions. Deep learning pays…

  8. What is the difference between online and batch inference, and how do you choose?

    Batch inference scores many records on a schedule and stores the results (nightly churn scores); online inference scores each request in real time behind an API (fraud check at checkout). Choose…

Was this page helpful?

Report a mistake