PERSONAL - Machine Learning

k-Nearest Neighbors

a77952056abd96c769f16412a3d18518.webp

Predicted Positive Predicted Negative
Actual Positive TP (correct) FN (incorrect)
Actual Negative FP (incorrect) TN (correct)

Decision Trees

6378be33604b20614450cc4f6139ddb1.webp
b49cbc923d10cb7275c71374edb4f506.webp

6dce0b55921115d3aff99d8388686d42.webp

Probabilistic Inference

Summary

Method Task Result Coin Flip Example
Maximum Likelihood Estimation (MLE) Solve optimization problem: \max_{\theta} \log p(\mathcal{D} \mid \theta)max⁡θlog⁡p(D∣θ)\max_{\theta} \log p(\mathcal{D} \mid \theta) Point estimate: \theta_{\text{MLE}}θMLE\theta_{\text{MLE}} \theta_{\text{MLE}} = \frac{|T|}{|T|+|H|}θMLE=∣T∣∣T∣+∣H∣\theta_{\text{MLE}} = \frac{|T|}{|T|+|H|}
Maximum a Posteriori (MAP) Estimation Solve optimization problem: \max_{\theta} \log p(\theta \mid \mathcal{D})max⁡θlog⁡p(θ∣D)\max_{\theta} \log p(\theta \mid \mathcal{D}) Point estimate: \theta_{\text{MAP}}θMAP\theta_{\text{MAP}} \theta_{\text{MAP}} = \frac{|T|+a-1}{|T|+|H|+a+b-2}θMAP=∣T∣+a−1∣T∣+∣H∣+a+b−2\theta_{\text{MAP}} = \frac{|T|+a-1}{|T|+|H|+a+b-2}
Estimating the Posterior Distribution Find the normalizing constant: p(\mathcal{D})p(D)p(\mathcal{D}) Full distribution: p(\theta \mid \mathcal{D})p(θ∣D)p(\theta \mid \mathcal{D}) p(\theta \mid \mathcal{D}) = \text{Beta}(\theta \mid a + |T|, b + |H|)p(θ∣D)=Beta(θ∣a+∣T∣,b+∣H∣)p(\theta \mid \mathcal{D}) = \text{Beta}(\theta \mid a + |T|, b + |H|)

Linear Regression

Symbol Meaning
xxx scalar is lowercase and not bold
\mathbf{x}x\mathbf{x} vector is lowercase and bold
\mathbf{\Sigma}Σ\mathbf{\Sigma} matrix is uppercase and bold
f(\mathbf{x})f(x)f(\mathbf{x}) predicted value for inputs \mathbf{x}x\mathbf{x}
\mathbf{y}y\mathbf{y} vector of targets
y_iyiy_i target of the iii-th example
w_0w0w_0 bias term (not to be confused with bias in general)
\phi(\cdot)ϕ(⋅)\phi(\cdot) basis function
E(\cdot)E(⋅)E(\cdot) error function
\mathcal{D}D\mathcal{D} training data
\mathbf{X}^\daggerX†\mathbf{X}^\dagger Moore-Penrose pseudoinverse of \mathbf{X}X\mathbf{X}

Regression Problem

0b3a232cd90ef2f4c671b76b187d0c3c.webp

Typical Basis Functions

941245794e44c093f72194ebca35bd78.webp

Probabilistic Linear Regression

Linear Classification

Symbol Meaning
sss scalar is lowercase and not bold
\mathbf{s}s\mathbf{s} vector is lowercase and bold
\mathbf{S}S\mathbf{S} matrix is uppercase and bold
\hat{y}y^\hat{y} predicted class label
yyy actual class label
\mathbb{I}(a)I(a)\mathbb{I}(a) indicator function; \mathbb{I}(a) = 1I(a)=1\mathbb{I}(a) = 1 if aaa is true, else 000

Introduction to Linear Classification

Probabilistic Generative Models for Linear Classification

Probabilistic Discriminative Models for Linear Classification

Optimization

Deep Learning

Beyond Binary Classification

36ca77bbea2a2448887d70e1ce5d96fe.webp

Parameter Learning

4461974a06e4819d474d556dfa0b6429.webp
62edaffbd50925aa1c9f4da866e4f3ff.webp
1d5100e909ad8975fce470f6b7db3f74.webp

Structured Data

Training Deep Neural Networks

Support Vector Machines (SVMs)

Soft Margin Support Vector Machines

Kernels

Dimensionality Reduction

Principal Component Analysis

012109ecc301fa31f7d53e57ebc3dba1.webp
e641dc8f93f27419b94fcb873a01257f.webp

Singular Value Decomposition

Matrix Factorization

Clustering

K-means Algorithm

Gaussian Mixture Model