PrepStack › AI › ML Fundamentals

ML Fundamentals interview cheat sheet

Learning types, bias-variance, validation, metrics and the core algorithms

Most ML and data-science interviews open with fundamentals before any deep learning. Interviewers check that you can set up an honest experiment (splits, cross-validation, no leakage), explain why a model fails (bias vs variance, regularisation), pick the right metric for the business problem, and reason about the classic algorithms and their trade-offs. The pure-Python snippets show the maths behind each idea; the scikit-learn snippets show how you would do it in real code. Read the 15-minute revision first, then switch to Quiz mode and answer out loud.

15-minute revision

  1. AI ⊃ ML ⊃ DL. ML learns rules from data instead of hand-coding them; deep learning is ML with many-layer neural networks that learn features themselves.
  2. Supervised = labelled data (regression, classification). Unsupervised = no labels (clustering, PCA). Semi-supervised = few labels + many unlabelled. Self-supervised = labels made from the data itself (next token). RL = agent learns from rewards.
  3. Regression predicts a number (MAE, RMSE, R²). Classification predicts a class or probability (precision, recall, F1, ROC-AUC, log loss).
  4. Split train / validation / test. Tune on validation (or CV), touch the test set once at the end. Use stratified splits for classification and time-ordered splits for time series.
  5. Data leakage = information the model will not have at prediction time sneaks into training. Fit scalers, imputers, encoders and SMOTE inside a Pipeline, on training folds only.
  6. k-fold CV trains k models, each validated on a different fold, and averages the scores. Stratified keeps class ratios; TimeSeriesSplit only trains on the past; GroupKFold keeps a user's rows together.
  7. Bias = error from too-simple assumptions (underfit: bad train and test). Variance = sensitivity to the training sample (overfit: great train, poor test). Total error ≈ bias² + variance + noise.
  8. Fix overfitting: more data, simpler model, regularisation, feature selection, early stopping, dropout, bagging. Fix underfitting: richer features, more complex model, less regularisation, train longer.
  9. L1 (Lasso) pushes weights to exactly zero → feature selection. L2 (Ridge) shrinks all weights smoothly and handles correlated features. Elastic net mixes both.
  10. Standardisation (z-score) for linear models, SVM, k-NN, PCA, neural nets. Min-max to [0, 1] when a bounded range is needed. Trees do not need scaling.
  11. Imbalanced data: accuracy lies. Use PR-AUC, recall, F1, plus class weights, resampling (SMOTE on the training folds only) and a tuned decision threshold.
  12. Precision = TP / (TP + FP): of the flagged, how many were right. Recall = TP / (TP + FN): of the real positives, how many we caught. F1 = their harmonic mean.
  13. ROC-AUC = chance a random positive outscores a random negative; it looks optimistic on rare positives. PR-AUC focuses on the positive class, so prefer it for heavy imbalance.
  14. Bagging (Random Forest) trains deep trees in parallel on bootstrap samples → cuts variance. Boosting (XGBoost, LightGBM) trains shallow trees in sequence on the previous errors → cuts bias.
  15. Scale-sensitive: linear/logistic with regularisation, SVM, k-NN, k-means, PCA. Curse of dimensionality: in high dimensions distances look alike and data gets sparse.
  16. Explain models with SHAP (per-prediction feature contributions that add up to the output) and permutation importance. Impurity-based tree importance is biased towards high-cardinality features.

Foundations

AI vs ML vs DL & learning paradigms

ML is the part of AI that learns from data. The paradigm depends on what feedback you have: labels, no labels, some labels, self-made labels or rewards.

  • Artificial intelligence is the broad goal of machines doing tasks that need intelligence. It includes rule-based systems, search and planning, not only learning.
  • Machine learning learns a function from examples instead of hand-written rules. You give it data and an objective; it finds the parameters.
  • Deep learning is ML with multi-layer neural networks. It learns its own features from raw data (pixels, text), but needs more data and compute.
  • Classic ML on tabular data still often beats deep learning. Gradient-boosted trees are the usual baseline for structured data.
  • Self-supervised learning creates labels from the data itself (predict the next word, fill in a masked patch). It is how large language models are pre-trained.
  • Reinforcement learning has no fixed dataset: an agent acts, gets a reward, and learns a policy that maximises long-term reward.
  • Supervised tasks split into regression (predict a number, judged by MAE/RMSE) and classification (predict a class, usually via a probability and a threshold; judged by precision, recall, ROC-AUC). Logistic regression is a classifier despite its name.

Interview questions

  • What is the difference between AI, ML and deep learning?
  • Explain supervised vs unsupervised learning with examples.
  • What is the difference between regression and classification?
  • How is reinforcement learning different from supervised learning?

The ML workflow

Frame the problem, get and split data, build a baseline, iterate on features and models with validation, test once, deploy and monitor.

  • Frame the problem: what decision will the prediction drive, what is the target, what metric matches the business cost?
  • Collect and explore data (EDA): distributions, missing values, outliers, class balance, label quality, time ranges.
  • Split early: hold out a test set before you look too closely, so your choices are not tuned to it.
  • Baseline first: predict the mean or majority class, then a simple linear model. Every complex model must beat it.
  • Iterate: feature engineering, model choice, hyperparameter tuning, all judged by cross-validation on training data.
  • Evaluate once on test, then deploy the whole pipeline (preprocessing + model) and monitor for data drift and concept drift; retrain when quality drops.

Interview questions

  • Walk me through how you would approach a new ML problem.
  • Why do you need a baseline model?
  • What is data drift vs concept drift?

Honest evaluation: splits, leakage & CV

Train / validation / test split

Train fits parameters, validation picks hyperparameters and models, test gives one unbiased final estimate.

  • Training set: the model learns its parameters (weights, tree splits) here.
  • Validation set: used to compare models, tune hyperparameters and do early stopping. Because you make choices on it, its score becomes optimistic.
  • Test set: used once at the end to estimate performance on unseen data. If you tune on it, it stops being a test set.
  • Common ratios: 60/20/20 or 70/15/15 for medium data. With millions of rows, 98/1/1 can be enough. With small data, use cross-validation instead of a fixed validation set.
  • Use stratify=y to keep class ratios in each split. Split by time for forecasting and by group (user, patient) when rows from one entity are correlated.
  • The test set should look like production data. If production is next month, the test set should be the latest month.

Interview questions

  • Why do we need separate validation and test sets?
  • How would you split data for a model that predicts next week's sales?
  • Your model scores 0.95 in validation but 0.70 in production. What could be wrong?

Data leakage

Leakage is when training uses information that will not exist at prediction time, so validation scores look great and production fails.

  • Target leakage: a feature is caused by or recorded after the target. Example: refund_issued used to predict fraud.
  • Train-test contamination: preprocessing (scaling, imputation, encoding, feature selection, SMOTE) fitted on the full dataset before splitting.
  • Temporal leakage: random splits on time-ordered data, or features computed with future values (rolling means that include today's target).
  • Group leakage: the same patient, user or image appears in both train and test, so the model memorises the entity.
  • Red flags: suspiciously high scores, one feature dominating importance, or a big gap between offline and online results.
  • Fix: split first, put every learned transform inside a Pipeline, use time/group-aware CV, and audit each feature for “would I know this at prediction time?”

Interview questions

  • What is data leakage and how do you prevent it?
  • Is it leakage to standardise the whole dataset before splitting?
  • A feature has extremely high importance and the AUC is 0.99. What do you do?

Cross-validation: k-fold, stratified, time-series

Cross-validation rotates the validation fold so every row is used for validation once, giving a more stable estimate than one split.

  • k-fold: split into k folds; train on k − 1, validate on the remaining one; repeat k times and average. k = 5 or 10 is typical.
  • Report mean and standard deviation of the fold scores. A large spread means the estimate is noisy or the data is heterogeneous.
  • Stratified k-fold keeps the class ratio in every fold. It is the default for classifiers in cross_val_score when cv is an integer.
  • TimeSeriesSplit uses an expanding (or sliding) window: train on the past, validate on the next block. It never trains on the future.
  • GroupKFold keeps all rows of one group in the same fold. Leave-one-out is k = n: low bias but expensive and high variance.
  • Nested CV: an inner loop tunes hyperparameters, an outer loop estimates the performance of the whole tuning procedure.

Interview questions

  • What is k-fold cross-validation and why use it?
  • When should you use stratified k-fold?
  • Why can't you use normal k-fold on time-series data?
  • What is nested cross-validation?

Features & data preparation

Feature engineering, scaling & encoding

Turn raw data into informative numeric features: scale numbers for distance- and gradient-based models, encode categories without inventing fake order.

  • Feature engineering examples: ratios (debt/income), date parts (hour, weekday), aggregates (orders in last 30 days), text counts, interactions, log transforms of skewed values.
  • Normalisation (min-max): x' = (x − min) / (max − min) → [0, 1]. Sensitive to outliers; new values can fall outside [0, 1].
  • Standardisation (z-score): x' = (x − μ) / σ → mean 0, std 1. The default for linear models, SVM, k-NN, PCA and neural nets. RobustScaler uses median/IQR for outliers.
  • Tree models (decision trees, RF, gradient boosting) split on thresholds, so they do not need scaling.
  • One-hot encoding for nominal categories with few values. Ordinal encoding only when the order is real (S < M < L), or for tree models.
  • High-cardinality categories (zip code, product ID): target encoding (out-of-fold), frequency encoding, hashing, or embeddings. Handle unseen categories at prediction time.

Interview questions

  • What is the difference between normalisation and standardisation?
  • Which algorithms need feature scaling and which do not?
  • How do you encode a categorical feature with 10,000 values?

Handling class imbalance

When one class is rare, change the metric first, then use class weights, resampling on training folds only, and a tuned decision threshold.

  • Start with the metric: precision, recall, F1, PR-AUC or a cost-based metric. Accuracy is misleading when 99% of rows are negative.
  • Class weights make mistakes on the rare class cost more in the loss: class_weight='balanced' in scikit-learn, scale_pos_weight ≈ negatives / positives in XGBoost.
  • Random undersampling drops majority rows (fast, loses data). Random oversampling duplicates minority rows (can overfit).
  • SMOTE creates synthetic minority points by interpolating between a minority sample and one of its k nearest minority neighbours. It works best with numeric features.
  • Threshold tuning: keep a calibrated probability model and pick the threshold on validation data that maximises F1 or minimises expected cost. Often the simplest, strongest fix.
  • Resampling changes the class prior, so predicted probabilities are no longer calibrated; re-calibrate if you need real probabilities.

Interview questions

  • How do you handle an imbalanced dataset?
  • How does SMOTE work and what are its risks?
  • When would you lower the decision threshold below 0.5?

Curse of dimensionality & PCA

As features grow, data becomes sparse and distances lose meaning; reduce dimensions with feature selection or projections like PCA.

  • The volume of the space grows exponentially with dimensions, so a fixed dataset covers it more and more sparsely. You need far more data to generalise.
  • Distance concentration: in high dimensions the nearest and farthest neighbours are almost equally far, which hurts k-NN, k-means and other distance-based methods.
  • More features also means more chance of spurious correlations and overfitting, especially when features ≫ rows.
  • PCA finds orthogonal directions (principal components) of maximum variance, the eigenvectors of the covariance matrix, and projects data onto the top k.
  • PCA is linear, unsupervised and scale-sensitive: standardise first. Choose k from the explained-variance curve, for example 95% of variance.
  • Alternatives: feature selection (filter, wrapper, L1), t-SNE / UMAP for 2-D visualisation (not for features), autoencoders for non-linear compression.

Interview questions

  • What is the curse of dimensionality?
  • How does PCA work?
  • PCA vs t-SNE?

Generalisation & training

Bias-variance, overfitting & underfitting

Underfitting is high bias (too simple), overfitting is high variance (too sensitive to the training sample); the goal is the sweet spot with lowest validation error.

  • Bias: error from wrong or too-simple assumptions. A straight line on curved data has high bias at any sample size.
  • Variance: how much the model changes when trained on a different sample. A deep unpruned tree has high variance.
  • Expected test error (squared loss) = bias² + variance + irreducible noise. You can trade one for the other, but not remove the noise.
  • Underfitting signs: high training error and high validation error, close together. Overfitting signs: low training error, much higher validation error.
  • Learning curves (score vs training size) tell you whether more data will help: a large train-validation gap that shrinks with more data means variance.
  • Modern deep nets can show double descent: test error can fall again past the interpolation point. The classic U-curve is still the expected interview answer.

Interview questions

  • Explain the bias-variance trade-off.
  • How do you detect overfitting?
  • Your model underfits. What do you try?

Regularisation: L1, L2 & elastic net

Add a penalty on weight size to the loss: L1 zeros out weights (sparse), L2 shrinks them smoothly, elastic net combines both.

  • L2 (Ridge): loss + λ·Σw². Shrinks all weights towards zero but rarely to exactly zero. Handles correlated features by spreading weight across them.
  • L1 (Lasso): loss + λ·Σ|w|. Pushes many weights to exactly zero, so it doubles as feature selection. With correlated features it tends to pick one arbitrarily.
  • Elastic net: a mix of L1 and L2 (l1_ratio). Gets sparsity while staying stable with groups of correlated features.
  • Bigger λ = simpler model = more bias, less variance. Tune λ with cross-validation (RidgeCV, LassoCV, ElasticNetCV).
  • In scikit-learn, alpha is λ for Ridge/Lasso, but in LogisticRegression and SVC, C is the inverse (smaller C = stronger regularisation).
  • Other regularisers: early stopping, dropout, weight decay, data augmentation, limiting tree depth or leaves, and ensembling.

Interview questions

  • What is the difference between L1 and L2 regularisation?
  • Why does L1 produce sparse solutions?
  • When would you use elastic net over Lasso?

Loss functions & gradient descent

The loss measures how wrong the model is; gradient descent repeatedly steps the parameters against the gradient of that loss.

  • MSE for regression (penalises big errors, matches Gaussian noise). MAE is robust to outliers. Huber is MSE near zero and MAE for big errors.
  • Log loss / binary cross-entropy for probabilistic classification; categorical cross-entropy with softmax for multi-class. Hinge loss for SVMs.
  • Update rule: w ← w − η·∇L(w). η (learning rate) too small = slow; too large = divergence or oscillation.
  • Batch GD uses all rows per step (stable, slow). Stochastic GD uses one row (noisy, can escape shallow minima). Mini-batch (32–512 rows) is the practical default.
  • Momentum accumulates past gradients to speed through ravines. RMSProp scales steps per parameter. Adam combines both and is the default for neural nets (typical lr 1e-3).
  • Linear and logistic regression losses are convex, so GD reaches the global minimum. Neural network losses are non-convex; GD finds a good local minimum or saddle region.

Interview questions

  • Explain gradient descent.
  • Batch vs stochastic vs mini-batch gradient descent?
  • What happens if the learning rate is too high or too low?
  • Why use log loss instead of MSE for logistic regression?

Evaluation metrics

Confusion matrix, precision, recall & F1

Count TP, FP, FN and TN, then pick the metric whose errors matter most for the business problem.

  • Accuracy = (TP + TN) / all. Useful only when classes are balanced and errors cost the same.
  • Precision = TP / (TP + FP). High precision = few false alarms. Prioritise when FP is costly (spam filter hiding real mail).
  • Recall (sensitivity, TPR) = TP / (TP + FN). High recall = few misses. Prioritise when FN is costly (cancer screening, fraud).
  • Specificity (TNR) = TN / (TN + FP). FPR = 1 − specificity.
  • F1 = 2PR / (P + R), the harmonic mean, so it is low if either is low. Fβ weights recall β times as much as precision (F2 for recall-heavy tasks).
  • Multi-class averaging: macro (mean over classes, treats classes equally), weighted (by support), micro (pool all counts; equals accuracy for single-label multi-class).

Interview questions

  • Explain precision vs recall with an example.
  • When would you prefer high recall over high precision?
  • Why F1 and not just the average of precision and recall?
  • What is the difference between macro and micro averaging?

ROC-AUC vs PR-AUC & thresholds

ROC-AUC measures ranking over all thresholds using TPR vs FPR; PR-AUC uses precision vs recall and is more honest when positives are rare.

  • The ROC curve plots TPR (recall) against FPR at every threshold. ROC-AUC = probability that a random positive is scored higher than a random negative. 0.5 = random, 1.0 = perfect.
  • ROC-AUC is threshold-independent and insensitive to class ratio, because TPR and FPR are each normalised within one class.
  • With rare positives, FPR stays tiny even when false positives outnumber true positives, so ROC-AUC can look optimistic.
  • The PR curve plots precision against recall. Its baseline is the positive rate (e.g. 0.01), not 0.5. Summarised as average precision (average_precision_score).
  • AUC measures ranking, not calibration. A model can have high AUC but badly calibrated probabilities; check with a reliability curve or Brier score.
  • Choosing the operating point is a separate step: pick the threshold for the needed recall, precision or minimum cost.

Interview questions

  • What does ROC-AUC mean intuitively?
  • When is PR-AUC better than ROC-AUC?
  • Can a model have high AUC but poor accuracy or F1?
  • How do you choose a classification threshold?

Regression metrics: MAE, MSE, RMSE, R²

MAE is the average absolute error, RMSE punishes big errors more, and R² is the share of variance explained versus predicting the mean.

  • MAE = mean |y − ŷ|. Same units as the target, robust to outliers, easy to explain.
  • MSE = mean (y − ŷ)². Squares errors, so large errors dominate. Units are squared.
  • RMSE = √MSE. Back in target units; always ≥ MAE. A big gap between RMSE and MAE means some large errors.
  • R² = 1 − SS_res / SS_tot. 1 is perfect, 0 equals predicting the mean, and it can be negative on new data if the model is worse than the mean.
  • Adjusted R² penalises adding useless features. MAPE gives a percentage but explodes near zero targets and is asymmetric.
  • Pick by cost: if a 10-unit miss is twice as bad as a 5-unit miss, use MAE; if it is much worse, use RMSE.

Interview questions

  • What is the difference between MAE and RMSE?
  • Can R² be negative?
  • Why might R² be misleading?

Core algorithms

Linear & logistic regression

Linear regression fits a weighted sum to predict a number; logistic regression passes the weighted sum through a sigmoid to predict a probability.

  • Linear regression: ŷ = w·x + b, fitted by least squares (closed form via normal equations, or gradient descent).
  • Assumptions: linear relationship, independent errors, constant error variance (homoscedasticity), no strong multicollinearity; normal errors matter for confidence intervals.
  • Logistic regression: p = σ(w·x + b) where σ(z) = 1 / (1 + e^−z). Trained by minimising log loss (maximum likelihood). No closed form.
  • A logistic coefficient is a change in log-odds; e^w is the odds ratio for a one-unit increase in that feature.
  • The decision boundary is linear in the features. Add polynomial features or interactions for curved boundaries.
  • Both are fast, interpretable, and strong baselines. scikit-learn's LogisticRegression uses L2 regularisation by default with C=1.0.

Interview questions

  • What are the assumptions of linear regression?
  • How do you interpret a logistic regression coefficient?
  • Can logistic regression solve non-linear problems?

Decision trees, random forest & gradient boosting

A tree splits data with if/else rules; a random forest averages many decorrelated trees (bagging); gradient boosting adds shallow trees that fix previous errors.

  • A decision tree greedily picks the split that most reduces impurity: Gini or entropy for classification, MSE/variance for regression.
  • Single trees are interpretable and need no scaling, but overfit easily. Control with max_depth, min_samples_leaf, max_leaf_nodes or cost-complexity pruning (ccp_alpha).
  • Random forest = bagging + random feature subsets at each split (max_features='sqrt' for classifiers). Averaging decorrelated deep trees cuts variance. Out-of-bag rows give a free validation score.
  • Gradient boosting fits trees one after another; each new tree fits the negative gradient (residuals for MSE) of the current ensemble. The learning rate shrinks each tree's contribution.
  • XGBoost adds regularised objective, second-order gradients, sparsity-aware splits and fast parallel split finding. LightGBM uses histograms and leaf-wise growth. CatBoost handles categoricals natively with ordered target statistics.
  • For tabular data, tuned gradient-boosted trees are usually the strongest model. Random forests are a robust, low-tuning baseline.

Interview questions

  • How does a decision tree choose a split?
  • How does a random forest reduce overfitting compared to one tree?
  • Explain the difference between bagging and boosting.
  • Why is XGBoost so popular, and what are its key hyperparameters?

SVM, k-NN & Naive Bayes

SVM finds the widest-margin boundary (with kernels for curves), k-NN votes among the nearest training points, Naive Bayes applies Bayes' rule assuming independent features.

  • SVM maximises the margin between classes; only the support vectors (points on or inside the margin) define the boundary. Soft margin parameter C: large C = fewer violations allowed = less regularisation.
  • The kernel trick computes dot products in a high-dimensional feature space without building it: linear, polynomial, RBF (gamma controls how local each point's influence is).
  • SVMs need scaled features, train in roughly O(n²)–O(n³), and do not output probabilities natively (probability=True adds Platt scaling with internal CV).
  • k-NN is a lazy learner: no training, prediction = majority vote (or average) of the k nearest points. Needs scaling, suffers from the curse of dimensionality, and is slow at prediction time without index structures.
  • Naive Bayes: P(class | x) ∝ P(class)·Π P(xᵢ | class), assuming features are independent given the class. Gaussian, Multinomial (word counts) and Bernoulli variants.
  • Naive Bayes is very fast, works with little data and is a strong text classification baseline; its probabilities are poorly calibrated. Use Laplace smoothing (alpha) to avoid zero probabilities.

Interview questions

  • How does an SVM work?
  • What is the kernel trick?
  • What are C and gamma in an RBF SVM?
  • Why is Naive Bayes “naive”, and why does it still work?

Clustering: k-means & DBSCAN

k-means splits data into k round clusters around centroids; DBSCAN finds dense regions of any shape and marks sparse points as noise.

  • k-means alternates two steps: assign each point to the nearest centroid, move each centroid to the mean of its points. It minimises inertia (within-cluster squared distance) and converges to a local optimum.
  • Use k-means++ initialisation and several restarts (n_init). Scale features first. It assumes roughly spherical, similar-size clusters and is sensitive to outliers.
  • Choose k with the elbow method (inertia vs k), silhouette score (−1 to 1, higher is better) or domain knowledge.
  • DBSCAN has two parameters: eps (neighbourhood radius) and min_samples. Core points have at least min_samples neighbours within eps; clusters grow from core points; the rest are noise (label −1).
  • DBSCAN does not need k, finds arbitrary shapes and handles outliers, but struggles when clusters have very different densities. HDBSCAN addresses that.
  • Other options: hierarchical (agglomerative) clustering with a dendrogram, Gaussian mixture models for soft, elliptical clusters.

Interview questions

  • Explain the k-means algorithm.
  • How do you choose k in k-means?
  • k-means vs DBSCAN?

Model selection & explainability

Hyperparameter tuning & interpretability (SHAP)

Tune hyperparameters with cross-validated search (random or Bayesian beats grid in high dimensions), then explain the model with SHAP and permutation importance.

  • Parameters are learned from data (weights, splits). Hyperparameters are set before training (learning rate, depth, C, k) and tuned on validation data.
  • Grid search tries every combination: simple but exponential. Random search samples combinations and finds good regions faster when only a few hyperparameters matter.
  • Bayesian optimisation (e.g. Optuna's TPE) models score vs hyperparameters and samples promising areas. Successive halving / Hyperband stop bad trials early.
  • Search on log scales for rates and penalties (1e-4 to 1e1), tune inside a Pipeline with CV, and keep a final untouched test set.
  • SHAP gives each feature a contribution to one prediction, based on Shapley values from game theory. Contributions add up to prediction − baseline (expected value). TreeExplainer is exact and fast for tree ensembles.
  • Other tools: permutation importance (drop in score when a feature is shuffled), partial dependence / ICE plots, LIME (local surrogate model), and inherently interpretable models (linear, small trees).

Interview questions

  • Grid search vs random search vs Bayesian optimisation?
  • What are SHAP values?
  • Why not trust a random forest's built-in feature importance?
  • Stakeholders want to know why a loan was rejected. How do you approach it?

Choosing an algorithm

Choose by data type and size, need for interpretability, latency and how much tuning you can afford; always start from a simple baseline.

  • Tabular, structured data: start with logistic/linear regression, then gradient-boosted trees (XGBoost, LightGBM, CatBoost, HistGradientBoosting*).
  • Images, audio, raw text: deep learning (CNNs, transformers), usually fine-tuning a pre-trained model.
  • Need explanations or regulation: linear models, small trees, or boosting with monotonic constraints plus SHAP.
  • Little data: simple, regularised models (logistic, Naive Bayes, small RF); strong priors beat flexible models.
  • Low latency or tiny memory: linear models or small trees; avoid k-NN and big ensembles at serving time.
  • No labels: clustering (k-means, DBSCAN), dimensionality reduction (PCA), anomaly detection (isolation forest).

Interview questions

  • You have a tabular dataset with 100k rows and mixed features. Which model would you try?
  • When would you choose a random forest over gradient boosting?
  • How do you decide between a simple interpretable model and a complex accurate one?