Omitir la prueba que requiere PyMC cuando no está instalado

This commit is contained in:
2026-12-03 00:55:50 -06:00
parent 3a033efc1b
commit efa2c2793e
+2
View File
@@ -1,3 +1,4 @@
import pytest
import numpy as np
from scipy.stats import norm
@@ -97,6 +98,7 @@ def test_patterns_keep_every_woman():
def test_summed_likelihood_matches_a_direct_sum():
pytest.importorskip("pymc") # optional dependency, not in the production environment
"""Fails if the PyMC likelihood with g summed out differs from summing P(data | g) P(g) woman by woman."""
X, r, y, U, arc = _referral_sample(n=400)
beta, kappa, delta = np.array([-1.0, 0.9]), 0.65, np.array([-1.5, 2.5, 1.2])