Skip to content

Commit

Permalink
rest of the changes attempted
Browse files Browse the repository at this point in the history
  • Loading branch information
asemposki committed Sep 18, 2024
1 parent 987f39a commit ebb384f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/Taweret/core/base_mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,10 @@ def train(self):
'''
Run sampler to learn parameters. Method should also create class
members that store the posterior and other diagnostic quantities
important for plotting
MAP values should also calculate and set as member variable of
class
important for plotting MAP values.
Return:
-------
Returns:
--------
_posterior : np.ndarray
the mcmc chain return from sampler
'''
2 changes: 1 addition & 1 deletion src/Taweret/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def normed_mvn_loglike(y, cov):
Evaluate the multivariate-normal log-likelihood for difference vector `y`
and covariance matrix `cov`:
log_p = -1/2*[(y^T).(C^-1).y + log(det(C))] + const.
.. math:: log_p = -1/2*[(y^T).(C^-1).y + log(det(C))] + const.
This likelihood IS NORMALIZED.
The normalization const = -n/2*log(2*pi), where n is the dimensionality.
Expand Down

0 comments on commit ebb384f

Please sign in to comment.