Logarithm (log)
Also written: log, natural logarithm, np.log
A function that turns products into sums: log(a × b) = log a + log b. Taking natural logs lets many small probabilities be added instead of multiplied, which avoids underflow.
Also written: log, natural logarithm, np.log
A function that turns products into sums: log(a × b) = log a + log b. Taking natural logs lets many small probabilities be added instead of multiplied, which avoids underflow.