Jul 2024

Machine Learning Essentials

Topics and resources for an undergraduate-level foundation in machine learning, linear algebra, artificial intelligence, information retrieval, social networks, deep learning and statistics. Hover over a topic to see what it covers.

Foundations

Topics

  • Perceptron: what it is, how it learns linear functions, which logic gates it can learn, and what about XOR?
  • Linear functions vs. non-linear functions
  • Dealing with non-linearity: activation functions such as sigmoid, ReLU and tanh, and where each fits (binary and multi-class classification, softmax, regression)
  • Regression vs. classification

Topics

  • Minimization of loss
  • Dynamic learning rate
  • Backpropagation math
  • Overfitting vs. underfitting: fitting the training data perfectly but failing on the test data
  • Momentum: gradually converging to the target function
  • Exponential smoothing: why momentum is a smoothing function
  • Nesterov's accelerated gradient: look-ahead momentum
  • AdaGrad, RMSProp and Adam optimizers
  • Different types of errors
  • Mean squared error
  • L1 and L2 loss
  • Regularization: what it is, Lasso and Ridge
  • Dropout: why it is necessary
  • Batch normalization vs. layer normalization
  • Binary cross-entropy
  • What is entropy?
  • KL divergence: how similar two distributions are, and the distance between them
  • Precision, accuracy, recall, F1 score, ROC curve

Topics

  • Autoencoders: reducing dimensions; variational autoencoders (standard deviation and KL divergence)
  • Denoising autoencoders
  • Convolutional neural networks: 2D and 3D filters
  • Activation maps, max pooling, average pooling
  • Vanishing gradients
  • Generative adversarial networks
  • Fine-tuning and transfer learning
  • YOLO models
  • DALL-E
  • When GANs converge (Nash equilibrium), and why the training is adversarial

Read and watch

Topics

  • Solving problems by searching a space of solutions
  • Intelligent agents and rationality
  • Uninformed search: DFS, BFS, depth-limited search, iterative deepening
  • Search strategies: greedy heuristic search, A*
  • Local search: hill climbing, stochastic hill climbing, simulated annealing, beam search, gradient descent, genetic algorithms (important)
  • Adversarial search and games: alpha-beta pruning, minimax, tic-tac-toe
  • Constraint satisfaction: map colouring with constraints
  • Propositional logic vs. first-order logic

Read and watch

Topics

  • PyTorch: different types of neural networks
  • TensorFlow and Keras
  • scikit-learn: other ML models
  • Hugging Face: pretrained language models
  • spaCy and NLTK: NLP tools

Read and watch

Topics

  • Bayesian methods
  • Joint probability
  • Correlation and covariance
  • Conditional probability and independence
  • Multivariate random variables
  • Expectation; binomial, Gaussian and Poisson random variables
  • Identity, inverse, diagonal, orthogonal and orthonormal matrices
  • Eigenvalues and eigenvectors
  • Eigendecomposition
  • Singular value decomposition
  • Sampling data
  • Maximum likelihood estimates
  • Maximum a posteriori estimates
  • Bias–variance trade-offs
  • Hypothesis testing and statistical significance

Read and watch

Topics

  • Representing text: term frequency, inverse document frequency
  • Bigrams and trigrams
  • Vector space model
  • Inverted index: what it is, and how it helps query large text corpora
  • Minimum edit distance: handling spelling mistakes in queries (not ML)
  • PageRank, Google's page ranking (not ML, but related to text ML)
  • Dimensionality reduction: principal component analysis (PCA)
  • Latent semantic indexing
  • Contextualized word representations (meaning changes with context: bear the animal, bear to tolerate): Word2Vec, BERT, GPT-2, GPT-3, ChatGPT, Bard, Bing AI
  • GloVe embeddings: static word embeddings
  • Non-negative matrix factorization: an optimization problem with the Frobenius norm
  • Recurrent neural networks: image captioning, language translation
  • LSTM and GRU

Read and watch

Topics

  • Walks, paths, Euler circuits, Hamiltonian circuits, degrees
  • Connected graphs, directed acyclic graphs, bipartite graphs, trees
  • Reciprocity and transitivity
  • Clustering coefficient
  • Graph neural networks
  • Random networks: Erdős–Rényi
  • Six degrees of separation
  • Power-law degree distributions
  • Homophily
  • Watts–Strogatz networks
  • Barabási–Albert networks
  • Scale-free networks
  • Zipf's law
  • Communities in graphs, cliques and clustering: hierarchical, Girvan–Newman, Louvain, clique percolation

Topics

  • Utility and payoff functions; reinforcement learning, Q-learning
  • Strict and weak dominance
  • Prisoner's dilemma, Pareto superior, Pareto optimal
  • Strictly vs. weakly dominated strategies
  • Nash equilibrium, Pareto optimal, social optimum
  • Hawk–dove games
  • Mixed strategies

Read and watch

Topics

  • Support vector machines: What a margin is in classification; What support vectors are; Primal function, maximum margin; Min-max of the Lagrangian; Slack variables for non-separable data; Projecting to higher dimensions; Kernel functions; Multi-class SVM: one-vs-one, one-vs-rest
  • Naive Bayes: Probabilistic classification; Likelihood; Maximum likelihood estimation; Laplace smoothing and Laplace correction
  • Decision trees and random forests: Entropy and information gain; Gini gain; Pruning to prevent overfitting, post-pruning; Reduced error pruning; K-fold cross-validation; ID3 algorithm
  • K-nearest neighbours: What a nearest neighbour is; Euclidean, Manhattan and Mahalanobis distance; 1-NN vs. k-NN
  • Logistic regression
  • Ensemble learning: Boosting and bagging; AdaBoost; Random forests
  • Clustering: K-means clustering; Unsupervised learning; Clustering around centroids; Hierarchical clustering; Probabilistic clustering; Gaussian mixture models
  • Hidden Markov models: Markov chains; Discrete Markov processes; Viterbi algorithm; Baum–Welch algorithm; Markov chain Monte Carlo
  • Market basket analysis: Expectation maximization; Estimating when data is hidden; Purity; Normalized mutual information
  • Genetic algorithms
  • Particle swarm optimization

Read and watch

Advanced topics

Topics

  • Convex functions
  • Jensen's inequality
  • Convex optimization
  • Smooth optimization
  • Min-cut algorithm; Las Vegas and Monte Carlo algorithms
  • Markov and Chebyshev inequalities
  • Concentration bounds: Chernoff, Hoeffding
  • MAX-SAT problems, expander graphs
  • Lovász local lemma
  • Fingerprinting and Freivalds' algorithm
  • Submodularity
  • Monotone functions
  • Hessians, the Cauchy–Schwarz inequality
  • Constrained vs. unconstrained optimization
  • The pseudo-inverse of a matrix
  • Explainability: LIME and SHAP

Read and watch

Topics

  • Hypothesis space, instance space
  • Version space
  • Inductive bias, expressivity, decision boundaries
  • Mistake-bound learning
  • Polynomial and Gaussian kernels
  • Empirical risk minimization
  • Subgradient descent
  • PAC learning: probably approximately correct
  • k-CNF
  • Agnostic learning
  • VC dimension and shattering

Read and watch

Topics

  • Transformers: attention-based models, cross-attention
  • Sparse transformers: learning vs. memorization
  • Stable diffusion
  • Neural operators
  • VQ-VAE
  • Cross-modal learning
  • Neural radiance fields (NeRF)
  • Mel-spectrogram synthesis through diffusion
  • Learning embeddings

Read and watch