Skip to content

Commit

Permalink
Actually take the difference
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinRochford committed Jul 22, 2017
1 parent 8d06ab0 commit ae7d265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc3/stats.py
Expand Up @@ -932,4 +932,4 @@ def bfmi(trace):
"""
energy = trace['energy']

return np.square(energy).mean() / np.var(energy)
return np.square(np.diff(energy)).mean() / np.var(energy)

0 comments on commit ae7d265

Please sign in to comment.