trochee: (bithead)
trochee ([personal profile] trochee) wrote2005-02-23 05:01 pm
Entry tags:

precalculus does matter

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.

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

[identity profile] trochee.livejournal.com 2005-02-24 01:35 am (UTC)(link)
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.

[identity profile] kirinqueen.livejournal.com 2005-02-24 01:25 am (UTC)(link)
From what I hear, that is a relatively common cause of calculation bugs. No less silly, perhaps, but it's not so ridiculous to just think of log as log.

[identity profile] trochee.livejournal.com 2005-02-24 01:36 am (UTC)(link)
*sings*
it's log, it's log
it's big, it's heavy, it's wood
it's log, it's log
it's better than bad -- it's good

[identity profile] bwb-archive.livejournal.com 2005-02-24 03:11 am (UTC)(link)
At last! You have said something I understand!

[identity profile] boobirdsfly.livejournal.com 2005-02-24 03:54 am (UTC)(link)
I concur... and... this song would please the log lady in Twin Peaks very much. [livejournal.com profile] trochee , you sure have been thinking in songs lately... and you're quite good at it !:)

[identity profile] boobirdsfly.livejournal.com 2005-02-24 09:41 pm (UTC)(link)
I remember Ren and Stimpy. I spent hours when i first moved to the US sitting in a living room with people laughing really hard and not understanding what was so funny. Now i get it !
It did sound kinda familiar but i thought you adapted it from something... :)
ext_54961: (Default)

[identity profile] q-pheevr.livejournal.com 2005-02-24 03:43 pm (UTC)(link)

Funny, I always thought the lyrics went like this:

It's ln, it's ln,
It's it's big, it's heavy, it's wood!
It's ln, it's ln, It's better than bad—it's good!

[identity profile] trochee.livejournal.com 2005-02-24 04:11 pm (UTC)(link)
hahah!

[identity profile] congogirl.livejournal.com 2005-02-25 08:01 am (UTC)(link)
Yay! This refrain and the Fish Heads one occasionally sprint through my head when I'm not paying attention...



[{refrain}fish heads fish heads, roly poly fish heads, fish heads fish heads, eat them up, YUM! {verse}you can take a fish head / to a movie / wouldn't have to pay to / get - it - in!}]