Skip to content

Boarding pass · Machine Learning Intermediate

Machine Learning · Intermediate interview

An AI mock interview for practitioners comfortable with ML basics. Go deeper into the bias-variance trade-off and regularization, evaluation metrics, feature engineering, and ensemble methods.

20–30 minEstimated6 questionsTailored live12 model answersTo study
  • Voice interview
  • Live feedback
  • Browser-only
  • No installation required

Your report · sample

AI Readiness Score

/100
Content score English score

Finish the mock and get this report — scored on content and English, with concrete tips and a model answer for every question, plus a study plan.

Your flight path

Five steps to interview-ready.

From a quick warm-up to a personalised study plan — here's the whole loop, and what you get at each gate.

  1. Step 01

    Preparation

    Skim the topics and warm up — you're briefed before takeoff.

  2. Step 02

    AI Interview

    A realistic AI interviewer asks tailored questions — answer by voice or text.

  3. Step 03

    Instant Score

    Finish and get a 0–100 readiness score across content and English.

  4. Step 04

    AI Feedback

    Concrete tips and a rewritten model answer for every response.

  5. Step 05

    Study Plan

    A personalised plan targets your weakest areas — so the next run scores higher.

Preview the AI demo

See one answer scored, end to end.

The whole loop on sample data — question, your answer, instant feedback and a study plan. Hover to pause.

aevrofy.com/session · live demoPlaying

Interviewer · Question 1

“Tell me about yourself.”

Who it's for

  • Practitioners building ML models
  • Data scientists and ML engineers
  • Anyone targeting mid-level ML roles
  • Engineers sharpening before interviews

What you'll practice

  • Bias-variance and regularization
  • Precision/recall, ROC-AUC and imbalance
  • Feature engineering and leakage
  • Ensembles and hyperparameter tuning

Topics covered

What this level expects.

Model fitting

  • Bias-variance
  • Regularization (L1/L2)
  • k-fold CV

Evaluation metrics

  • Precision/recall/F1
  • ROC & AUC
  • Imbalanced data

Feature engineering

  • Engineering & selection
  • Encoding categoricals
  • Data leakage

Algorithms

  • Bagging vs boosting
  • Tree splitting
  • Hyperparameter tuning

Practice questions

12 questions, with model answers.

Read them, then run the live mock to answer out loud and get scored. Tap any question to reveal a model answer.

01Explain the bias-variance trade-off.

Bias is error from overly simplistic assumptions (underfitting); variance is error from sensitivity to the training data's noise (overfitting). Increasing model complexity lowers bias but raises variance, and vice versa, so total error is minimized at a balance. The goal is a model complex enough to capture the signal but not so complex it fits noise — you diagnose where you are via the train/test error gap.

02What's the difference between L1 and L2 regularization?

Both add a penalty on weight magnitudes to the loss to discourage overfitting. L2 (Ridge) penalizes squared weights, shrinking them smoothly toward (but not to) zero. L1 (Lasso) penalizes absolute weights and drives some exactly to zero, performing feature selection. You use L2 for general shrinkage and L1 when you want a sparse model that ignores irrelevant features; elastic net combines both.

03How does k-fold cross-validation help, and what are its variants?

k-fold splits data into k parts, training on k−1 and validating on the rest, rotating and averaging — giving a robust performance estimate and using all data for both training and validation. Stratified k-fold preserves class proportions in each fold (important for imbalanced data), and time-series CV respects temporal order (no training on the future). It's the backbone of reliable model selection.

04What's the difference between precision, recall, and F1?

Precision is, of the items predicted positive, how many actually are (TP / (TP+FP)) — it penalizes false alarms. Recall is, of all actual positives, how many you found (TP / (TP+FN)) — it penalizes misses. F1 is their harmonic mean, balancing the two. You optimize precision when false positives are costly (spam filtering) and recall when misses are costly (disease screening).

05What do the ROC curve and AUC tell you?

The ROC curve plots true-positive rate against false-positive rate across all classification thresholds, showing the trade-off as you move the decision boundary. AUC (area under it) summarizes this as a single number — the probability the model ranks a random positive above a random negative — where 0.5 is random and 1.0 is perfect. AUC is threshold-independent and useful for comparing models, though PR curves are better for heavy imbalance.

06How do you handle imbalanced datasets?

First, use the right metrics (precision/recall/F1, PR-AUC) instead of accuracy. Then techniques: resampling (oversample the minority, e.g. SMOTE, or undersample the majority), class weights to penalize minority errors more, adjusting the decision threshold, and choosing algorithms robust to imbalance. The best choice depends on data size and the cost of each error type — and you evaluate on the original distribution.

07What is feature engineering and feature selection?

Feature engineering creates informative inputs from raw data — transformations, aggregations, interactions, date parts, domain-derived signals — often the highest-leverage work in ML. Feature selection removes irrelevant or redundant features to reduce overfitting, training time, and complexity, via filter (correlation), wrapper (recursive elimination), or embedded (L1, tree importance) methods. Good features can make a simple model beat a complex one on raw data.

08How do you encode categorical variables?

One-hot encoding creates a binary column per category — simple and safe for low-cardinality features but explosive for high-cardinality ones. Label/ordinal encoding maps categories to integers (only valid when there's a real order). Target/mean encoding replaces a category with a statistic of the target, powerful for high cardinality but prone to leakage if not done within CV folds. You pick based on cardinality and whether order is meaningful.

09What is data leakage and how do you prevent it?

Data leakage is when information that wouldn't be available at prediction time sneaks into training, inflating offline performance but failing in production — e.g. scaling or imputing using the whole dataset before splitting, or using a feature derived from the target. You prevent it by fitting all preprocessing on the training fold only (inside a pipeline/CV), and scrutinizing features for anything that encodes the future or the label.

10What's the difference between bagging and boosting?

Both are ensembles that combine many weak learners. Bagging (e.g. Random Forest) trains models in parallel on bootstrapped samples and averages them, reducing variance. Boosting (e.g. Gradient Boosting, XGBoost) trains models sequentially, each correcting the previous one's errors, reducing bias and often achieving higher accuracy but more prone to overfitting and slower. Bagging for variance reduction and robustness; boosting for accuracy with careful tuning.

11How does a decision tree decide where to split?

At each node it picks the feature and threshold that best separates the data according to an impurity measure — Gini impurity or entropy/information gain for classification, variance reduction for regression — choosing the split that most reduces impurity. It recurses until a stopping criterion (max depth, min samples). Left unconstrained, trees overfit, which is why we limit depth or use ensembles.

12How do you tune hyperparameters?

Hyperparameters (set before training, like tree depth or learning rate) are tuned by searching combinations and evaluating with cross-validation. Grid search tries all combinations (exhaustive but expensive); random search samples them (often more efficient); Bayesian optimization uses past results to choose promising settings. You define a sensible search space, use CV to avoid overfitting the validation set, and keep the test set untouched for final evaluation.

Preparation tips

Walk in ready.

  • Be able to connect regularization to overfitting
  • Know when to optimize for precision vs recall
  • Watch for data leakage in your pipeline
  • Explain why random forests reduce variance

Ready for the real thing?

Run a 6-question Machine Learning mock interview, answer out loud, and get a readiness score with tips and model answers.

More intermediate interviews

Aevrofy · Machine Learning intermediate interview prep