Skip to content

Commit

Permalink
Fix SMC regression and re-enable test_smc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 14, 2021
1 parent 8067f68 commit ee122d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
--ignore=pymc3/tests/test_profile.py
--ignore=pymc3/tests/test_random.py
--ignore=pymc3/tests/test_shared.py
--ignore=pymc3/tests/test_smc.py
--ignore=pymc3/tests/test_starting.py
--ignore=pymc3/tests/test_step.py
--ignore=pymc3/tests/test_tracetab.py
Expand Down
2 changes: 1 addition & 1 deletion pymc3/smc/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def initialize_population(self):
if self.start is None:
init_rnd = sample_prior_predictive(
self.draws,
var_names=[v.name for v in self.model.unobserved_RVs],
var_names=[v.name for v in self.model.unobserved_value_vars],
model=self.model,
)
else:
Expand Down
1 change: 1 addition & 0 deletions pymc3/tests/test_smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def test_start(self):
trace = pm.sample_smc(500, start=start)


@pytest.mark.xfail("SMC-ABC not refactored yet")
class TestSMCABC(SeededTest):
def setup_class(self):
super().setup_class()
Expand Down

0 comments on commit ee122d0

Please sign in to comment.