Machine Learning Engineering: Train models you
actually understand
Master the maths from first principles, train classical and deep learning models, then ship them to production.
- Lessons
- 218
- Modules
- 19
- Parts
- 7
- Free to read
- 10
Foundations
5 modules · 55 lessons
01Machine learning fundamentals10 lessons
- Introduction to machine learning engineeringFree
- What machine learning is: rules learned from dataFree
- Supervised, unsupervised and reinforcement learningFree
- 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 beatFree
- Data, features and labelsFree
- Design: predicting trip times like Uber
02Python for machine learning8 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
03Linear algebra for machine learning12 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
04Calculus and optimization for machine learning11 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 modelFree
- 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
05Probability and statistics for machine learning14 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
3 modules · 30 lessons
06How models learn: losses and training9 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 underfittingFree
- Regularization: L1, L2 and early stopping
- Train, validation and test sets
- Cross-validation: getting more from little data
07Classical ML: regression and classification12 lessons
- Linear regression from scratchFree
- 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
08Unsupervised learning9 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
2 modules · 23 lessons
09Neural networks11 lessons
- Neurons and layers: the building blocksFree
- 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
10Deep learning architectures12 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
3 modules · 33 lessons
11Data preparation and feature engineering13 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
12Model evaluation and experimentation12 lessons
- Choosing a metric that matches the goal
- Precision and recall: two ways to be wrongFree
- 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
13Tuning and efficient training8 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
2 modules · 27 lessons
14Deploying ML models15 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
15Monitoring and retraining12 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
3 modules · 41 lessons
16Recommendation and ranking systems15 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
17Distributed training and scalable ML systems11 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
18Applied ML problems15 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
1 module · 9 lessons
19Machine learning engineering interviews9 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