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 How do you split data for training, validation and testing, and what is cross-validation?

    Train on one part, tune choices on a validation part, and report final performance once on a held-out test part. k-fold cross-validation rotates the validation fold through the training data so…

  2. Most asked Which metrics would you use for a classification model, and when is accuracy misleading?

    Accuracy misleads on imbalanced data: a fraud model that predicts "not fraud" every time is 99.9% accurate and useless. Use precision (of predicted positives, how many are right), recall (of real…

  3. How do you handle imbalanced classes?

    First pick metrics that reflect the imbalance (precision, recall, PR-AUC) and tune the decision threshold. Then, if needed, use class weights, resampling (undersample the majority, oversample or…

  4. How do you approach feature engineering for a tabular model?

    Start from domain understanding and how the prediction will be used, then build features that are available at prediction time: cleaned numeric values, encoded categories, dates broken into useful…

  5. How do you explain a model's predictions to stakeholders?

    Use global explanations for what the model relies on overall (permutation importance, SHAP summary plots, partial dependence) and local explanations for single predictions (SHAP values per feature).…

  6. How do you check a model for unfair bias?

    Measure performance and outcomes separately for relevant groups (where you can lawfully use the attributes): error rates, approval rates, calibration. Compare them against fairness criteria suited…

Was this page helpful?

Report a mistake