Logistic Regression: Calculate the logs of the likelihood instead of the raw value. 20121122030503/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 21 Nov 2012 21:13:27 +0000 (22:13 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 21 Nov 2012 21:13:27 +0000 (22:13 +0100)
commit5937fc72919993c44ae9956a44fb53de797483b5
tree53d3474cfab255de13677ebe2a4e601c41fab84e
parent53f7aa8f9d84203b0f62c6964ebf2ab6e0e51584
Logistic Regression: Calculate the logs of the likelihood instead of the raw value.

The likelihood values can become extremely large which can result in
lost precision in a double.  This change therefore calculates the
logarithms of the likelihoods instead of their actual value.
src/language/stats/logistic.c