We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b5c4e commit 966f802Copy full SHA for 966f802
scoringrules/core/crps/_closed.py
@@ -628,8 +628,12 @@ def mixnorm(
628
s_X = B.sqrt(s[..., None] ** 2 + s[..., None, :] ** 2)
629
w_X = w[..., None] * w[..., None, :]
630
631
- A_y = m_y * (2 * _norm_cdf(m_y / s) - 1) + 2 * s * _norm_pdf(m_y / s)
632
- A_X = m_X * (2 * _norm_cdf(m_X / s_X) - 1) + 2 * s_X * _norm_pdf(m_X / s_X)
+ A_y = m_y * (2 * _norm_cdf(m_y / s, backend=backend) - 1) + 2 * s * _norm_pdf(
+ m_y / s, backend=backend
633
+ )
634
+ A_X = m_X * (2 * _norm_cdf(m_X / s_X, backend=backend) - 1) + 2 * s_X * _norm_pdf(
635
+ m_X / s_X, backend=backend
636
637
638
sc_1 = B.sum(w * A_y, axis=-1)
639
sc_2 = B.sum(w_X * A_X, axis=(-1, -2))
0 commit comments