Commit b503f4fa authored by Andreas Nautsch's avatar Andreas Nautsch
Browse files

fix in log-evidence calculation

parent d9e429ab
......@@ -139,8 +139,8 @@ def e_on_batch_log_evidence(stat0, stat1, ubm, F):
# log evidence for standard i-vector, i.e. zero mean and identity prior
# see: Kenny, Stafylakis, Alam, Kockmann: An I-Vector Backend for Speaker Verification, Interspeech, 2015.
log_evidence -= - tv_rank + inv_lambda.trace() + scipy.linalg.norm(e_h[idx]) ** 2
log_evidence -= - numpy.log(inv_lambda.diagonal()).sum()
L = scipy.linalg.cholesky(inv_lambda).T
log_evidence -= - tv_rank - 2 * numpy.log(L.diagonal()).sum() + inv_lambda.trace() + scipy.linalg.norm(e_h[idx]) ** 2
supervector = F.dot(e_h[idx])
cov_accum = numpy.zeros((tv_rank, tv_rank))
for c in range(nb_distrib):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment