Skip to content

Commit 4c5781f

Browse files
committed
minor fix of calibration_ecdf
1 parent e46b962 commit 4c5781f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/diagnostics/plots/calibration_ecdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def calibration_ecdf(
145145
for j in range(ranks.shape[-1]):
146146
ecdf_single = np.pad(np.sort(ranks[:, j]), (1, 1), constant_values=(0, 1))
147147
xx = ecdf_single
148-
yy = np.arange(1, xx.shape[-1] + 1) / float(xx.shape[-1])
148+
yy = np.linspace(0, 1, num=xx.shape[-1])
149149

150150
# Difference, if specified
151151
if difference:

0 commit comments

Comments
 (0)