AI-ML
Learning from data — linear algebra to modern deep nets.
- notes
- 398notes
- chapters
- 28chapters
- tests
- 146tests
- words
- 1.0Mwords
Phase 1 — Mathematical & Programming Foundations
Beginner • 6-8 weeks4 chapters1.1
Linear Algebra Essentials
18 topics- 1.1.1Scalars, vectors, matrices, and tensors definitions
- 1.1.2Vector addition, scalar multiplication, and geometric interpretation
- 1.1.3Dot product and its geometric meaning (projection, angle)
- 1.1.4Vector norms (L1, L2, L-infinity, Lp)
- 1.1.5Matrix multiplication rules and dimensionality
- 1.1.6Identity, diagonal, symmetric, and orthogonal matrices
- 1.1.7Matrix transpose and properties
- 1.1.8Matrix inverse and conditions for invertibility
- 1.1.9Determinant computation and meaning
- 1.1.10Rank, column space, null space
- 1.1.11Linear independence and basis vectors
- 1.1.12Solving linear systems (Gaussian elimination)
- 1.1.13Eigenvalues and eigenvectors
- 1.1.14Eigendecomposition of matrices
- 1.1.15Singular Value Decomposition (SVD) intuition and computation
- 1.1.16Trace operator and properties
- 1.1.17Positive definite and semidefinite matrices
- 1.1.18Quadratic forms
1.2
Calculus & Optimization Basics
14 topics- 1.2.1Functions, limits, and continuity
- 1.2.2Derivatives and rules (product, quotient, chain)
- 1.2.3Partial derivatives
- 1.2.4Gradients and directional derivatives
- 1.2.5The Jacobian matrix
- 1.2.6The Hessian matrix
- 1.2.7Taylor series approximation
- 1.2.8Convex vs non-convex functions
- 1.2.9Local vs global minima - maxima
- 1.2.10Critical points and saddle points
- 1.2.11Lagrange multipliers for constrained optimization
- 1.2.12Gradient descent intuition and update rule
- 1.2.13Learning rate effects on convergence
- 1.2.14Chain rule for multivariate functions (backprop foundation)
1.3
Probability & Statistics
21 topics- 1.3.1Sample spaces, events, and axioms of probability
- 1.3.2Conditional probability
- 1.3.3Bayes' theorem and applications
- 1.3.4Independence and mutual exclusivity
- 1.3.5Random variables (discrete and continuous)
- 1.3.6Probability mass and density functions
- 1.3.7Cumulative distribution functions
- 1.3.8Expectation, variance, and standard deviation
- 1.3.9Covariance and correlation
- 1.3.10Common distributions (Bernoulli, Binomial, Poisson)
- 1.3.11Gaussian - Normal distribution properties
- 1.3.12Uniform, Exponential, and Beta distributions
- 1.3.13Joint, marginal, and conditional distributions
- 1.3.14Law of large numbers
- 1.3.15Central limit theorem
- 1.3.16Maximum likelihood estimation (MLE)
- 1.3.17Maximum a posteriori estimation (MAP)
- 1.3.18Entropy and KL divergence
- 1.3.19Cross-entropy concept
- 1.3.20Hypothesis testing and p-values
- 1.3.21Confidence intervals
1.4
Python & Scientific Computing
12 topics- 1.4.1Python syntax, data types, control flow
- 1.4.2Functions, classes, and modules
- 1.4.3List - dict comprehensions and generators
- 1.4.4NumPy arrays and vectorized operations
- 1.4.5NumPy broadcasting rules
- 1.4.6Pandas DataFrames and Series basics
- 1.4.7Data loading (CSV, JSON, parquet)
- 1.4.8Matplotlib and Seaborn visualization
- 1.4.9Jupyter notebooks workflow
- 1.4.10Virtual environments and pip - conda
- 1.4.11Git version control basics
- 1.4.12Reading documentation and debugging
Phase 2 — Data Preprocessing & Classical Machine Learning
Beginner→Intermediate • 8-10 weeks6 chapters2.1
Data Preprocessing & Feature Engineering
15 topics- 2.1.1Types of data (numerical, categorical, ordinal, text)
- 2.1.2Handling missing values (deletion, imputation strategies)
- 2.1.3Outlier detection and treatment
- 2.1.4Feature scaling - normalization vs standardization
- 2.1.5Min-max scaling and z-score normalization
- 2.1.6One-hot encoding and label encoding
- 2.1.7Ordinal and target encoding
- 2.1.8Binning and discretization
- 2.1.9Log and power transformations
- 2.1.10Feature creation and interaction terms
- 2.1.11Handling imbalanced datasets (SMOTE, undersampling)
- 2.1.12Train - validation - test splitting
- 2.1.13Data leakage identification and prevention
- 2.1.14Exploratory data analysis (EDA) workflow
- 2.1.15Correlation analysis and multicollinearity
2.2
Linear & Logistic Regression
16 topics- 2.2.1Simple linear regression model
- 2.2.2Multiple linear regression
- 2.2.3Ordinary least squares derivation
- 2.2.4Cost function (MSE) and gradient descent fitting
- 2.2.5Normal equation closed-form solution
- 2.2.6Polynomial regression
- 2.2.7Assumptions of linear regression
- 2.2.8R-squared and adjusted R-squared
- 2.2.9Logistic regression and the sigmoid function
- 2.2.10Log-loss - binary cross-entropy
- 2.2.11Decision boundaries
- 2.2.12Multinomial - softmax regression
- 2.2.13L1 (Lasso) regularization
- 2.2.14L2 (Ridge) regularization
- 2.2.15Elastic Net regularization
- 2.2.16Interpreting model coefficients
2.3
Tree-Based & Instance Methods
17 topics- 2.3.1Decision tree structure and terminology
- 2.3.2Entropy and information gain
- 2.3.3Gini impurity
- 2.3.4Tree pruning techniques
- 2.3.5Overfitting in decision trees
- 2.3.6Bagging and bootstrap aggregating
- 2.3.7Random forest algorithm
- 2.3.8Feature importance from trees
- 2.3.9Out-of-bag error estimation
- 2.3.10Boosting concept and intuition
- 2.3.11AdaBoost algorithm
- 2.3.12Gradient Boosting Machines
- 2.3.13XGBoost fundamentals and tuning
- 2.3.14LightGBM and CatBoost overview
- 2.3.15K-Nearest Neighbors algorithm
- 2.3.16Distance metrics (Euclidean, Manhattan, cosine)
- 2.3.17Choosing K and the curse of dimensionality
2.4
SVM, Naive Bayes & Probabilistic Models
11 topics- 2.4.1Support Vector Machine maximum margin concept
- 2.4.2Hard vs soft margin classifiers
- 2.4.3The kernel trick
- 2.4.4Linear, polynomial, and RBF kernels
- 2.4.5Hyperparameters C and gamma
- 2.4.6Support vectors interpretation
- 2.4.7Naive Bayes assumption
- 2.4.8Gaussian Naive Bayes
- 2.4.9Multinomial and Bernoulli Naive Bayes
- 2.4.10Laplace smoothing
- 2.4.11Naive Bayes for text classification
2.5
Unsupervised Learning
13 topics- 2.5.1K-Means clustering algorithm
- 2.5.2Choosing K (elbow method, silhouette score)
- 2.5.3K-Means++ initialization
- 2.5.4Hierarchical clustering (agglomerative - divisive)
- 2.5.5Dendrograms and linkage methods
- 2.5.6DBSCAN density-based clustering
- 2.5.7Gaussian Mixture Models and EM algorithm
- 2.5.8Principal Component Analysis (PCA) theory
- 2.5.9PCA via eigendecomposition and SVD
- 2.5.10Explained variance and choosing components
- 2.5.11t-SNE for visualization
- 2.5.12UMAP for dimensionality reduction
- 2.5.13Anomaly detection methods
2.6
Model Evaluation & Selection
16 topics- 2.6.1Bias-variance tradeoff
- 2.6.2Underfitting vs overfitting diagnosis
- 2.6.3Training, validation, and test error
- 2.6.4K-fold cross-validation
- 2.6.5Stratified and leave-one-out cross-validation
- 2.6.6Confusion matrix interpretation
- 2.6.7Accuracy, precision, recall, F1-score
- 2.6.8Precision-recall tradeoff and curves
- 2.6.9ROC curve and AUC
- 2.6.10Regression metrics (MAE, MSE, RMSE, MAPE)
- 2.6.11Log-loss and calibration
- 2.6.12Learning curves analysis
- 2.6.13Grid search and random search
- 2.6.14Bayesian hyperparameter optimization
- 2.6.15Cross-validation pitfalls and nested CV
- 2.6.16Ensemble methods (voting, stacking, blending)
Phase 3 — Neural Networks & Deep Learning
Intermediate • 10-12 weeks5 chapters3.1
Neural Network Fundamentals
13 topics- 3.1.1The perceptron model and history
- 3.1.2Multi-layer perceptron architecture
- 3.1.3Forward propagation computation
- 3.1.4Activation functions - sigmoid, tanh
- 3.1.5ReLU and variants (Leaky ReLU, ELU, GELU)
- 3.1.6Softmax for output layers
- 3.1.7Universal approximation theorem
- 3.1.8Loss functions - MSE, cross-entropy
- 3.1.9Backpropagation algorithm derivation
- 3.1.10Computational graphs and autograd
- 3.1.11Vanishing and exploding gradients
- 3.1.12Weight initialization (Xavier, He)
- 3.1.13Bias terms and their role
3.2
Training Deep Networks
15 topics- 3.2.1Stochastic gradient descent (SGD)
- 3.2.2Mini-batch gradient descent
- 3.2.3Momentum and Nesterov momentum
- 3.2.4AdaGrad and RMSprop
- 3.2.5Adam and AdamW optimizers
- 3.2.6Learning rate scheduling
- 3.2.7Learning rate warmup
- 3.2.8Batch normalization
- 3.2.9Layer normalization
- 3.2.10Dropout regularization
- 3.2.11Early stopping
- 3.2.12L1 - L2 weight decay in deep nets
- 3.2.13Data augmentation strategies
- 3.2.14Gradient clipping
- 3.2.15Hyperparameter tuning for deep nets
3.3
Deep Learning Frameworks
11 topics- 3.3.1PyTorch tensors and operations
- 3.3.2Autograd and computational graphs in PyTorch
- 3.3.3Building models with nn.Module
- 3.3.4Datasets and DataLoaders
- 3.3.5Training loops from scratch
- 3.3.6GPU acceleration and device management
- 3.3.7Saving and loading models (checkpoints)
- 3.3.8TensorFlow - Keras basics
- 3.3.9Mixed precision training
- 3.3.10TensorBoard - Weights & Biases logging
- 3.3.11Distributed training overview
3.4
Convolutional Neural Networks
15 topics- 3.4.1Convolution operation and filters
- 3.4.2Stride, padding, and dilation
- 3.4.3Pooling layers (max, average)
- 3.4.4Feature maps and receptive fields
- 3.4.5CNN architecture design
- 3.4.6LeNet and AlexNet
- 3.4.7VGG networks
- 3.4.8Inception - GoogLeNet
- 3.4.9ResNet and skip connections
- 3.4.10DenseNet and EfficientNet
- 3.4.11Transfer learning and fine-tuning
- 3.4.12Image classification pipeline
- 3.4.13Object detection (R-CNN, YOLO, SSD)
- 3.4.14Semantic segmentation (U-Net, FCN)
- 3.4.15Data augmentation for images
3.5
Sequence Models
14 topics- 3.5.1Recurrent Neural Networks (RNN) architecture
- 3.5.2Backpropagation through time
- 3.5.3Vanishing gradients in RNNs
- 3.5.4Long Short-Term Memory (LSTM) cells
- 3.5.5Gated Recurrent Units (GRU)
- 3.5.6Bidirectional RNNs
- 3.5.7Sequence-to-sequence models
- 3.5.8Encoder-decoder architecture
- 3.5.9The attention mechanism intuition
- 3.5.10Bahdanau and Luong attention
- 3.5.11Word embeddings (Word2Vec, GloVe)
- 3.5.12Handling variable-length sequences
- 3.5.13Teacher forcing
- 3.5.14Beam search decoding
Phase 4 — Transformers, LLMs & Generative Models
Advanced • 10-12 weeks5 chapters4.1
Transformer Architecture
14 topics- 4.1.1Limitations of RNNs motivating transformers
- 4.1.2Self-attention mechanism in detail
- 4.1.3Query, key, value matrices
- 4.1.4Scaled dot-product attention
- 4.1.5Multi-head attention
- 4.1.6Positional encodings (sinusoidal)
- 4.1.7Rotary positional embeddings (RoPE)
- 4.1.8Feed-forward network sublayers
- 4.1.9Residual connections and layer norm placement
- 4.1.10Encoder vs decoder vs encoder-decoder
- 4.1.11Masked attention for autoregression
- 4.1.12The original - Attention is All You Need - architecture
- 4.1.13Computational complexity of attention
- 4.1.14Flash attention and efficient attention
4.2
Tokenization & Language Modeling
10 topics- 4.2.1Tokenization fundamentals
- 4.2.2Byte-Pair Encoding (BPE)
- 4.2.3WordPiece and SentencePiece
- 4.2.4Vocabulary size tradeoffs
- 4.2.5Embedding layers and tied weights
- 4.2.6Causal language modeling objective
- 4.2.7Masked language modeling (BERT)
- 4.2.8Next sentence prediction
- 4.2.9Perplexity as a metric
- 4.2.10Context window and sequence length
4.3
Pretraining & Fine-Tuning LLMs
14 topics- 4.3.1GPT family architecture evolution
- 4.3.2BERT and encoder models
- 4.3.3T5 and text-to-text framework
- 4.3.4Pretraining data curation and cleaning
- 4.3.5Self-supervised pretraining objectives
- 4.3.6Full fine-tuning vs feature extraction
- 4.3.7Parameter-efficient fine-tuning (PEFT)
- 4.3.8LoRA and QLoRA
- 4.3.9Adapter layers and prefix tuning
- 4.3.10Instruction tuning
- 4.3.11Supervised fine-tuning (SFT)
- 4.3.12Catastrophic forgetting
- 4.3.13Quantization (INT8, INT4, GPTQ)
- 4.3.14Knowledge distillation
4.4
Alignment, Prompting & RAG
16 topics- 4.4.1Reinforcement Learning from Human Feedback (RLHF)
- 4.4.2Reward modeling
- 4.4.3Proximal Policy Optimization for LLMs
- 4.4.4Direct Preference Optimization (DPO)
- 4.4.5Constitutional AI overview
- 4.4.6Zero-shot and few-shot prompting
- 4.4.7Chain-of-thought prompting
- 4.4.8Self-consistency and tree-of-thought
- 4.4.9In-context learning mechanisms
- 4.4.10Prompt engineering best practices
- 4.4.11Retrieval-Augmented Generation (RAG) architecture
- 4.4.12Vector databases and embeddings
- 4.4.13Chunking strategies for retrieval
- 4.4.14Reranking and hybrid search
- 4.4.15Hallucination mitigation
- 4.4.16Evaluation of LLMs (benchmarks, LLM-as-judge)
4.5
Generative Models
17 topics- 4.5.1Generative vs discriminative models
- 4.5.2Autoencoders fundamentals
- 4.5.3Variational Autoencoders (VAE) theory
- 4.5.4Reparameterization trick
- 4.5.5ELBO objective and KL term
- 4.5.6Generative Adversarial Networks (GAN) framework
- 4.5.7Generator and discriminator dynamics
- 4.5.8GAN training instability and mode collapse
- 4.5.9DCGAN, WGAN, StyleGAN
- 4.5.10Diffusion models forward - reverse process
- 4.5.11Denoising diffusion probabilistic models (DDPM)
- 4.5.12Noise scheduling
- 4.5.13Score-based generative models
- 4.5.14Classifier-free guidance
- 4.5.15Latent diffusion (Stable Diffusion)
- 4.5.16Text-to-image conditioning (CLIP)
- 4.5.17Evaluating generative models (FID, IS)
Phase 5 — Reinforcement Learning & MLOps
Advanced • 8-10 weeks3 chapters5.1
Reinforcement Learning Foundations
13 topics- 5.1.1Agent, environment, state, action, reward
- 5.1.2Markov Decision Processes (MDP)
- 5.1.3Policies and value functions
- 5.1.4State-value and action-value functions
- 5.1.5Bellman equations
- 5.1.6Discount factor and returns
- 5.1.7Exploration vs exploitation tradeoff
- 5.1.8Epsilon-greedy strategy
- 5.1.9Dynamic programming (value - policy iteration)
- 5.1.10Monte Carlo methods
- 5.1.11Temporal Difference learning
- 5.1.12SARSA algorithm
- 5.1.13Q-learning algorithm
5.2
Deep & Advanced RL
14 topics- 5.2.1Deep Q-Networks (DQN)
- 5.2.2Experience replay
- 5.2.3Target networks
- 5.2.4Double DQN and Dueling DQN
- 5.2.5Policy gradient methods
- 5.2.6REINFORCE algorithm
- 5.2.7Actor-critic methods
- 5.2.8Advantage Actor-Critic (A2C - A3C)
- 5.2.9Proximal Policy Optimization (PPO)
- 5.2.10Trust Region Policy Optimization (TRPO)
- 5.2.11Soft Actor-Critic (SAC)
- 5.2.12Multi-agent reinforcement learning
- 5.2.13Reward shaping and sparse rewards
- 5.2.14Model-based RL overview
5.3
MLOps & Deployment
18 topics- 5.3.1ML project lifecycle
- 5.3.2Experiment tracking and reproducibility
- 5.3.3Model versioning and registries
- 5.3.4Data versioning (DVC)
- 5.3.5Feature stores
- 5.3.6Model serving (REST APIs, FastAPI)
- 5.3.7Batch vs real-time inference
- 5.3.8Containerization with Docker
- 5.3.9Kubernetes for ML workloads
- 5.3.10Model serving frameworks (TorchServe, Triton)
- 5.3.11CI - CD pipelines for ML
- 5.3.12Model monitoring and observability
- 5.3.13Data drift and concept drift detection
- 5.3.14A - B testing for models
- 5.3.15Model retraining pipelines
- 5.3.16Cost optimization and inference latency
- 5.3.17Edge deployment and ONNX
- 5.3.18LLM serving (vLLM, quantized inference)
Phase 6 — Cutting-Edge Topics: Scaling, Agents & Safety
Expert • 8-10 weeks5 chapters6.1
Scaling & Efficient Architectures
13 topics- 6.1.1Neural scaling laws (Chinchilla, compute-optimal)
- 6.1.2Compute-data-parameter tradeoffs
- 6.1.3Emergent abilities in large models
- 6.1.4Mixture-of-Experts (MoE) architecture
- 6.1.5Sparse routing and gating networks
- 6.1.6Load balancing in MoE
- 6.1.7Model parallelism (tensor, pipeline)
- 6.1.8Data parallelism and ZeRO optimization
- 6.1.9FSDP and sharded training
- 6.1.10Long-context architectures
- 6.1.11State-space models (Mamba, S4)
- 6.1.12Speculative decoding
- 6.1.13KV-cache optimization
6.2
AI Agents & Tool Use
10 topics- 6.2.1Agent architectures and reasoning loops
- 6.2.2ReAct (reasoning + acting) framework
- 6.2.3Tool use and function calling
- 6.2.4Planning and task decomposition
- 6.2.5Memory systems for agents
- 6.2.6Multi-agent collaboration
- 6.2.7Agentic frameworks (LangChain, LlamaIndex)
- 6.2.8Code-generation agents
- 6.2.9Autonomous agent evaluation
- 6.2.10Guardrails and constrained generation
6.3
Interpretability & Explainability
11 topics- 6.3.1Importance of interpretability
- 6.3.2Feature attribution (SHAP, LIME)
- 6.3.3Saliency maps and Grad-CAM
- 6.3.4Attention visualization and limitations
- 6.3.5Probing classifiers
- 6.3.6Mechanistic interpretability
- 6.3.7Circuits and superposition
- 6.3.8Sparse autoencoders for features
- 6.3.9Activation patching
- 6.3.10Counterfactual explanations
- 6.3.11Concept-based explanations
6.4
AI Safety & Alignment
15 topics- 6.4.1The alignment problem definition
- 6.4.2Outer vs inner alignment
- 6.4.3Reward hacking and specification gaming
- 6.4.4Goal misgeneralization
- 6.4.5Scalable oversight
- 6.4.6Red-teaming language models
- 6.4.7Jailbreaks and adversarial prompts
- 6.4.8Adversarial examples and robustness
- 6.4.9Bias, fairness, and discrimination metrics
- 6.4.10Privacy (differential privacy, membership inference)
- 6.4.11Data poisoning and backdoor attacks
- 6.4.12Watermarking and provenance
- 6.4.13AI governance and regulation (EU AI Act)
- 6.4.14Existential and catastrophic risk frameworks
- 6.4.15Responsible AI deployment practices
6.5
Research Frontiers & Practice
12 topics- 6.5.1Reading and reproducing ML papers
- 6.5.2Implementing models from scratch
- 6.5.3Benchmark design and evaluation rigor
- 6.5.4Self-supervised and contrastive learning (SimCLR, CLIP)
- 6.5.5Multimodal models (vision-language)
- 6.5.6World models and embodied AI
- 6.5.7Continual and lifelong learning
- 6.5.8Federated learning
- 6.5.9Neuro-symbolic AI
- 6.5.10Open problems and future directions
- 6.5.11Contributing to open-source ML
- 6.5.12Building a portfolio and research roadmap