trochee: (bithead)
[personal profile] trochee
I just spent three days working out why two different language modeling schemes were producing vastly different log-probabilities. I was using every bit of good software design practice that I know, and leaning on colleagues to confirm that I was running it right.

You know why it all went wrong? System X produces probabilities in logarithms of base 10, and system Y does it in base e.

This reminds me of the stories about the Mars Climate Orbiter unit conversion error, although that is apparently apocryphal.

Date: 2005-02-24 01:23 am (UTC)
From: [identity profile] evan.livejournal.com
shouldn't log_e and log_10 just be off by a constant multiplier?

Date: 2005-02-24 01:35 am (UTC)
From: [identity profile] trochee.livejournal.com
yup, they're different by a constant multiplier of log[e](10). But when you're log-linearly interpolating between the log values it matters.

Profile

trochee: (Default)
trochee

June 2016

S M T W T F S
   1234
567 89 1011
12131415 161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 2nd, 2026 05:36 pm
Powered by Dreamwidth Studios