👍 Loss Functions
- Quantifies what it means to have a “good” model
- Different types of loss functions for different tasks, such as:
- Classification
- Regression
- Metric Learning
- Reinforcement Learning
Classification
Classification: Predicting a discrete class label
Negative log-likelihood loss (per sample ) / Cross-Entropy loss
- Used in various multiclass classification methods for NN training
Hinge Loss: used in Support Vector Machines (SVMs)
Regression
Regression: Predicting a one or multiple continuous quantities
Goal: Minimize the distance between the predicted value and true values
L1-Loss (Mean Average Error)
L2-Loss (Mean Square Error, MSE)
Metric Learning / Similarity Learning
A model for measuring the distance (or similarity) between objects
Triplet Loss
\sum_{(a, p, n) \in T} \max \left\\{0, \alpha-\left\|\mathbf{x}\_{a}-\mathbf{x}\_{n}\right\|\_{2}^{2}+\left\|\mathbf{x}\_{a}-\mathbf{x}\_{p}\right\|\_{2}^{2}\right\\}