-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update isort version for pre-commit PyCQA/isort#2108 * Require pymc >= 5.0.0 and replace aesara by pytensor * Update testval to initval in utils_test.py testval is deprecated now * Add tests covering bounded (uniform) variables and lists of variables for utils.eval_in_model() Bounded variables are transformed by PyMC, which has implications for rvs_to_values I think Lists of variables are handled differently than single variables by utils.Evaluator * Replace `pymc.pytensorf.rvs_to_value_vars()` by `pymc.Model().replace_rvs_by_values()` These should be equivalent. `pymc.pytensorf.rvs_to_value_vars()` requires extra argument, but the model method fills them automatically.
- Loading branch information
Showing
8 changed files
with
67 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# ref: https://github.com/pymc-devs/pymc3/blob/master/pymc3/tests/conftest.py | ||
|
||
import aesara | ||
import pytensor | ||
import pytest | ||
|
||
|
||
@pytest.fixture(scope="package", autouse=True) | ||
def theano_config(): | ||
flags = dict(compute_test_value="off") | ||
config = aesara.configparser.change_flags(**flags) | ||
config = pytensor.config.change_flags(**flags) | ||
with config: | ||
yield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters