Loss Functions
Regression
L1/L2 Loss
L1 = Σ|y_true - y_pred|
L2 = Σ(y_true - y_pred)²
Measures absolute/quadratic differences between predicted and true values.
Robust to outliers (L1)
Smooth gradients (L2)
Classification
Cross-Entropy
CE = -Σ(y_true * log(y_pred))
Measures difference between predicted probabilities and true distribution.
Multi-class
Sensitive to imbalance
Machine Learning Types
Computer Vision
Algorithms that process and analyze visual data like images and videos.
Example: Image classification with CNNs
Large Language Models
Transformer-based models trained on massive text corpora for NLP tasks.
Example: GPT, BERT, T5
How Neural Networks Work
Neural Network Anatomy
Weights & Biases
Parameters that transform input data through learned patterns.
Activation Functions
Non-linear functions (ReLU, sigmoid) that enable complex mappings.
Training Process
1
Forward Pass
Compute predictions from input data through the network layers.
2
Loss Calculation
Measure how far predictions are from true values using a loss function.