Logistic Regression: Optimise the classification calculations. 20121120030502/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Nov 2012 09:32:14 +0000 (10:32 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Nov 2012 09:32:14 +0000 (10:32 +0100)
commit00fd47eccf62f5657bc32655bdddcf3758d882e2
treeff95de23cd1cdf67fede463ee3a0b10e01d21878
parentac9ad68f886cc67c0f2ec144c2bfcb148031d452
Logistic Regression: Optimise the classification calculations.

Instead of calculating the logit of the prediction for each case,
pre-calculate the inverse logit of the threshold before the process
starts.  This should give a small performance gain..
src/language/stats/logistic.c