Skip to content

Commit

Permalink
plot axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax committed Nov 27, 2024
1 parent 49e861f commit fba51f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neurobayes/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,6 @@ def plot_rhats(samples):
sgr = numpyro.diagnostics.split_gelman_rubin
rhats = [sgr(v).flatten() for (k, v) in samples.items() if k.endswith('kernel')]
rhats = np.concatenate(rhats)
plt.hist(rhats, bins=20, color='green', alpha=0.6);
plt.hist(rhats, bins=20, color='green', alpha=0.6)
plt.xlabel('r_hat', fontsize=14)
plt.ylabel('Count', fontsize=14)

0 comments on commit fba51f7

Please sign in to comment.