Skip to content

Commit

Permalink
sum->mean
Browse files Browse the repository at this point in the history
  • Loading branch information
ppegolo committed Sep 18, 2024
1 parent 2de0b26 commit b2fe641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sportran/md/maxlike.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ def log_likelihood_wishart(
# log_pdf = (
# 0.5*(coeff_detV*np.log(detV + eps) + coeff_detX*np.log(detX + eps) - trinvV_X) - logG
# )
tot = -np.sum(log_pdf)

# return the negative LL because of `minimize`
tot = -np.mean(log_pdf)
return tot

def log_likelihood_complex_wishart(
Expand Down

0 comments on commit b2fe641

Please sign in to comment.