BAMresearch / bayem

Implementation and derivation of "Variational Bayesian inference for a nonlinear forward model." [Chappell et al. 2008] for arbitrary, user-defined model errors.
MIT License
2 stars 1 forks source link

Performance improvement in noise.loglike #51

Closed TTitscher closed 3 years ago

TTitscher commented 3 years ago

Instead of calling the logpdf individually for each term, we now concatenate all terms and call logpdf once. Fewer individual numpy evaluations is always a good idea!