Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2011-06-30 08:18:24 +0400
committerJohn Langford <jl@hunch.net>2011-06-30 08:18:24 +0400
commit78972c0e5c0eb6412f02edf27b8afc9371d50e86 (patch)
tree02d05fd7105dd67d919297d6e408fe60f4217194 /lda_core.cc
parent06045a5aa943da6b0ca492eaaae71e39442c45f7 (diff)
32 bit LDA works
Diffstat (limited to 'lda_core.cc')
-rw-r--r--lda_core.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lda_core.cc b/lda_core.cc
index f419c617..60cb449e 100644
--- a/lda_core.cc
+++ b/lda_core.cc
@@ -364,7 +364,7 @@ float theta_kl(float* gamma)
}
float digammasum = mydigamma(gammasum);
gammasum = mylgamma(gammasum);
- float kl = -global.lda*mylgamma(global.lda_alpha);
+ float kl = -(global.lda*mylgamma(global.lda_alpha));
kl += mylgamma(global.lda_alpha*global.lda) - gammasum;
for (size_t k = 0; k < global.lda; k++) {
Elogtheta[k] -= digammasum;