L2 normalization equation: x_i' = x_i / ||x||_2
Image: decltype, CC BY-SA 3.0, via Wikimedia Commons
L2 normalization equation: x_i' = x_i / ||x||_2
L2 normalization is a technique used to scale vectors in machine learning. The equation x_i' = x_i / ||x||_2 represents this process, where x_i' is the normalized vector, x_i is the original vector, and ||x||_2 is the L2 norm of the vector x.
Example
Consider a vector x = [3, 4]. The L2 norm ||x||_2 is calculated as √(3² + 4²) = 5. Thus, the L2 normalized vector x' = [3/5, 4/5] = [0.6, 0.8].
Remember this
L2 normalization ensures that vectors have a unit norm, which can improve the performance of machine learning algorithms and facilitate better convergence during training.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
Matrix norm
L1 norm of a vector is the sum of absolute values of its components
Batch normalization
Batch normalization formula: Y = (X - μ) / σ * γ + β
Dot product
Dot product = sum of products of corresponding entries
Quadratic equation
Quadratic equation standard form: ax² + bx + c = 0
Regression analysis
Linear regression equation: ŷ = β0 + β1X
Rotation matrix
Determinant of a 2x2 matrix: ad - bc
Swipe through 100 ML concepts daily
Open Pocket Polymath