Logarithm
Say it: "log of x", "ln x" for the natural log
What it means
is the power you raise to, to get : . (or just in ML) uses base . Logs turn products into sums: .
Example
The log undoes the power.
In code
import numpy as np print(np.log2(8), np.log10(1000), np.log(np.e))
Output
3.0 3.0 1.0
Where it appears in machine learning
Log-likelihood, cross-entropy loss, log-probabilities from language models, and log scales for skewed data.
Related symbols
Learn it properly in the free lesson Reading ML Maths, with practice questions that check your answers.