Machine Learning Engineering roadmap
Master the maths from first principles, train classical and deep learning models, then deploy, monitor and scale them in production.
7 parts · 19 modules · 218 lessons
Foundations
Module 01: Machine learning fundamentals
10 lessons- Introduction to machine learning engineering
- What machine learning is: rules learned from data
- Supervised, unsupervised and reinforcement learning
- The ML lifecycle: from problem to production
- ML engineering roles: what the job involves
- When not to use machine learning
- Framing a business problem as an ML problem
- Baselines: the simple model to beat
- Data, features and labels
- Design: predicting trip times like Uber
Module 02: Python for machine learning
8 lessons- The ML toolkit: a map of libraries and platforms
- NumPy: arrays and vectorized maths
- pandas for preparing ML data
- Plotting data to understand it
- Notebooks or scripts: when to use each
- scikit-learn: the fit and predict pattern
- PyTorch tensors: shapes, axes and operations
- Design: exploring a dataset before modeling
Module 03: Linear algebra for machine learning
12 lessons- Vectors: lists of numbers with direction
- Dot products: measuring how similar vectors are
- Matrices as transformations of space
- Matrix multiplication in practice
- Matrix inverses: undoing a transformation
- Matrix equations: finding many unknowns together
- Rank: spotting redundant features
- Eigenvectors: the natural axes of a matrix
- SVD: breaking a matrix into simple parts
- Norms and distances between data points
- Least squares: the best-fitting line
- PCA: keeping the directions that matter
Module 04: Calculus and optimization for machine learning
11 lessons- Derivatives: how outputs change with inputs
- The chain rule: derivatives through layers
- Gradients: derivatives with many inputs
- Gradient descent: walking downhill to a better model
- Learning rate: step size and stability
- Stochastic and mini-batch gradient descent
- Momentum, Adam and modern optimizers
- Convex and non-convex problems
- Lagrange multipliers: the best answer within limits
- Jacobians and Hessians: derivatives for whole layers
- Automatic differentiation: how PyTorch finds gradients
Module 05: Probability and statistics for machine learning
14 lessons- Probability: putting numbers on uncertainty
- Bayes’ rule: turning evidence into probabilities
- Random variables and distributions
- The normal distribution: why it appears everywhere
- Expected value, variance and spread
- Correlation is not causation
- Covariance matrices: how features move together
- Sampling and the central limit theorem
- Maximum likelihood: fitting models to data
- Uncertainty in estimates: confidence intervals
- Hypothesis tests and p-values for ML
- Bayesian thinking: priors and posteriors
- Entropy and cross-entropy: measuring surprise
- Common statistics mistakes in ML work
Core machine learning
Module 06: How models learn: losses and training
9 lessons- Models as functions with learnable parameters
- Loss functions: measuring how wrong a model is
- Common losses: squared error to cross-entropy
- The training loop: predict, measure, adjust
- Bias and variance: two kinds of error
- Overfitting and underfitting
- Regularization: L1, L2 and early stopping
- Train, validation and test sets
- Cross-validation: getting more from little data
Module 07: Classical ML: regression and classification
12 lessons- Linear regression from scratch
- Logistic regression: predicting probabilities
- k-nearest neighbours: learning from similar examples
- Support vector machines: maximum-margin boundaries
- Decision trees: learning rules by splitting data
- Random forests: many trees voting together
- Gradient boosting: XGBoost, LightGBM and CatBoost
- Imbalanced classes: when positives are rare
- Multi-class and multi-label problems
- Choosing a model for tabular data
- Case: ShareChat’s trees versus neural rankers
- Design: a churn prediction model for an online store
Module 08: Unsupervised learning
9 lessons- Clustering: finding groups without labels
- k-means: grouping similar data points
- Hierarchical, density and mixture-model clustering
- t-SNE and UMAP: seeing high-dimensional data
- Anomaly detection: finding the unusual
- Association rules: what gets bought together
- Judging clusters when there are no labels
- Clustering with embeddings
- Design: customer segments for an online store
Deep learning
Module 09: Neural networks
11 lessons- Neurons and layers: the building blocks
- Activation functions: adding non-linearity
- Backpropagation: how neural networks learn
- Building a neural network in PyTorch
- Weight initialization and unstable gradients
- Batch and layer normalization
- Dropout and other ways to regularize networks
- Learning rate schedules and warmup
- Debugging a network that won’t train
- Training on GPUs: memory, precision and speed
- Design: a classifier for product photos
Module 10: Deep learning architectures
12 lessons- Convolutional networks: learning from images
- Vision architectures: ResNet to vision transformers
- Transfer learning: reusing pretrained models
- Recurrent networks for sequences
- Learned embeddings: vectors for words, items and users
- Case: Flipkart’s visual search across 50M products
- Attention: the maths of focusing on what matters
- The transformer, layer by layer
- Training a small transformer from scratch
- Pretraining and fine-tuning
- Self-supervised learning: autoencoders to contrastive
- Generative models: VAEs, GANs and diffusion
Model development and evaluation
Module 11: Data preparation and feature engineering
13 lessons- Data quality for ML: what breaks models
- Missing values: dropping, filling or flagging
- Encoding categories as numbers
- Scaling and normalizing features
- Feature engineering for tabular data
- Text features: from word counts to embeddings
- Time-based features without looking ahead
- Data leakage: when a model secretly cheats
- Labeling data: people, LLMs and quality checks
- Feature stores: one feature, training and serving
- Case: Meesho’s feature store at 1M reads a second
- Data augmentation: more examples from existing ones
- Datasets: versioning and documentation
Module 12: Model evaluation and experimentation
12 lessons- Choosing a metric that matches the goal
- Precision and recall: two ways to be wrong
- ROC and precision-recall curves
- Regression metrics: MAE, RMSE and beyond
- Ranking metrics: NDCG, MAP and recall at k
- Calibration: probabilities you can trust
- Error analysis: where and why the model fails
- Fairness: checking models for bias
- Explaining predictions: SHAP and feature importance
- Offline and online evaluation
- A/B testing ML models
- Experiment tracking: recording every run
Module 13: Tuning and efficient training
8 lessons- Hyperparameter tuning: search methods and AutoML
- Training pipelines: from notebook to repeatable job
- ML code that lasts: packages, config and logging
- Reproducibility: seeds, environments and versions
- Batch size, memory and training speed
- Checkpoints, mixed precision and gradient accumulation
- Smaller models: pruning and distillation
- Design: training a model on a small budget
MLOps
Module 14: Deploying ML models
15 lessons- Serving patterns: batch, online and streaming
- Packaging models: formats and containers
- Serving a model behind an API
- Batch prediction pipelines
- Real-time features at prediction time
- Case: PhonePe’s real-time fraud check on transfers
- Training–serving skew: when production data differs
- Model registry and versioning
- CI/CD for machine learning
- Testing ML systems: data, model and code checks
- Rolling out models: shadow, canary and A/B
- Models on phones and edge devices
- The cost of serving ML models
- Case: Pinterest’s user embeddings served on GPUs
- Design: fraud scoring like Stripe Radar
Module 15: Monitoring and retraining
12 lessons- Monitoring ML in production: what to watch
- Data drift and concept drift
- Detecting drift with statistical tests
- Case: Uber’s automatic drift checks on key datasets
- Monitoring models before labels arrive
- Feedback loops and delayed labels
- Retraining: on a schedule or on a trigger
- Online learning: updating models continuously
- Incident response for ML systems
- ML platforms: open-source and managed options
- Case: Zalando’s weekly demand forecasts for 5M items
- Design: a retraining pipeline for demand forecasts
Advanced ML systems
Module 16: Recommendation and ranking systems
15 lessons- Recommendation systems: the problem they solve
- Collaborative filtering and matrix factorization
- Case: Spotify’s graph model for audiobook picks
- Content-based recommendations
- Two-tower models for fast retrieval
- Candidate generation and ranking: the two-stage design
- Generative recommenders: semantic IDs and sequences
- Learning to rank
- Ranking features: users, items and context
- The cold start problem
- Exploration and bandits
- Evaluating recommenders offline and online
- Multi-objective ranking: clicks, purchases and more
- Case: Swiggy’s ranking that lifts revenue per order
- Design: product recommendations like Amazon
Module 17: Distributed training and scalable ML systems
11 lessons- Why train across many machines
- Data parallel training: same model, many GPUs
- Model, pipeline and expert parallel training
- Sharded training: ZeRO and FSDP
- Communication costs in distributed training
- Fault tolerance and checkpoints at scale
- Feeding the GPUs: data loading at scale
- Sharing GPU clusters across ML teams
- Real-time ML systems: latency budgets end to end
- Case: Meta’s ads model trained on thousands of GPUs
- Design: training infrastructure for a growing team
Module 18: Applied ML problems
15 lessons- Time series forecasting: predicting what comes next
- Case: Uber’s deep learning model for trip times
- Demand forecasting at scale
- Text classification: prompt, fine-tune or distill
- Object detection and image segmentation
- Search relevance models
- Ad click prediction: sparse features at scale
- Fraud detection models
- Case: Razorpay’s foundation model for payments
- Case: Stripe’s fraud model, from trees to deep nets
- Pricing and uplift models
- Case: Myntra’s discount pricing from demand forecasts
- Matching and routing: where ML meets optimization
- Causal inference for ML engineers
- Reinforcement learning: decisions learned from rewards
Interviews
Module 19: Machine learning engineering interviews
9 lessons- ML engineering interviews: what companies test
- Explaining ML concepts clearly in interviews
- ML coding interviews: implementing from scratch
- ML system design interviews: a framework
- Statistics and probability interview questions
- Take-home ML assignments
- Common mistakes in ML engineering interviews
- Mock interview: designing a recommendation system
- Mock interview: designing a fraud detection system