Omitir la prueba que requiere PyMC cuando no está instalado
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import pytest
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from scipy.stats import norm
|
from scipy.stats import norm
|
||||||
|
|
||||||
@@ -97,6 +98,7 @@ def test_patterns_keep_every_woman():
|
|||||||
|
|
||||||
|
|
||||||
def test_summed_likelihood_matches_a_direct_sum():
|
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."""
|
"""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)
|
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])
|
beta, kappa, delta = np.array([-1.0, 0.9]), 0.65, np.array([-1.5, 2.5, 1.2])
|
||||||
|
|||||||
Reference in New Issue
Block a user