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.

Date: 2005-02-24 01:25 am (UTC)
From: [identity profile] kirinqueen.livejournal.com
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.

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

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

Date: 2005-02-24 03:54 am (UTC)
From: [identity profile] boobirdsfly.livejournal.com
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 !:)

Date: 2005-02-24 09:41 pm (UTC)
From: [identity profile] boobirdsfly.livejournal.com
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... :)

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

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!

Date: 2005-02-24 04:11 pm (UTC)

Date: 2005-02-25 08:01 am (UTC)
From: [identity profile] congogirl.livejournal.com
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!}]

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 08:05 am
Powered by Dreamwidth Studios