4 ms·
I'm the author of the article ... Yes you are right, it's better to convert the whole thing to a sum of logs, otherwise you end up with floating-point underflo
by bad_user 15y ago
I'm the author of the article ...
Yes you are right, it's better to convert the whole thing to a sum of logs, otherwise you end up with floating-point underflow.
The article was getting already too long however, but I'll add a note about it because it is an important optimization that affects both speed and even correctness (because of the underlying limitations of floating point).
UPDATE: note added.
- ppod 15y agoIs the sum of logs method mathematically equivalent to the multiplication of probabilities (i.e. will it always produce a monotonic ordering of class predictions)?
- alexchamberlain 15y agolog(AB) = log(A) + log(B) for all A, B real numbers
- phaedon 15y agoOnly for A, B > 0, but that's good enough for probabilities (except 0, I guess)
- alexchamberlain 15y agoThat was there to test you...