Skip to content

Commit 8adcd4a

Browse files
ArmavicaricardoV94
authored andcommitted
Distribute test_variational_inference
1 parent e9d7583 commit 8adcd4a

File tree

7 files changed

+853
-793
lines changed

7 files changed

+853
-793
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
floatx: [float64]
148148
python-version: ["3.8"]
149149
test-subset:
150-
- pymc/tests/test_variational_inference.py pymc/tests/test_initial_point.py
150+
- pymc/tests/variational/test_approximations.py pymc/tests/variational/test_callbacks.py pymc/tests/variational/test_inference.py pymc/tests/variational/test_opvi.py pymc/tests/test_initial_point.py
151151
- pymc/tests/test_model.py pymc/tests/test_step.py
152152
- pymc/tests/gp/test_cov.py pymc/tests/gp/test_gp.py pymc/tests/gp/test_mean.py pymc/tests/gp/test_util.py pymc/tests/ode/test_ode.py pymc/tests/ode/test_utils.py pymc/tests/test_smc.py pymc/tests/test_parallel_sampling.py
153153
- pymc/tests/test_sampling.py pymc/tests/step_methods/test_metropolis.py pymc/tests/step_methods/test_slicer.py pymc/tests/step_methods/hmc/test_nuts.py

pymc/tests/models.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ def simple_model():
3535
return model.initial_point(), model, (mu, tau**-0.5)
3636

3737

38+
def another_simple_model():
39+
_, _model, _ = simple_model()
40+
with _model:
41+
pm.Potential("pot", at.ones((10, 10)))
42+
return _model
43+
44+
3845
def simple_categorical():
3946
p = floatX_array([0.1, 0.2, 0.3, 0.4])
4047
v = floatX_array([0.0, 1.0, 2.0, 3.0])

0 commit comments

Comments
 (0)