forked from arviz-devs/preliz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pymc support to predictive explorer (arviz-devs#450)
* Add pymc support to predictive explorer * Clean and correct py version * Add pymc to requirements-docs.txt * Shift pymc requirement as optional * Disable logging for pymc sampling, Update plot helper
- Loading branch information
1 parent
2a44f9d
commit e6ea72e
Showing
5 changed files
with
147 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import logging | ||
|
||
from contextlib import contextmanager | ||
|
||
|
||
@contextmanager | ||
def disable_pymc_sampling_logs(logger: logging.Logger = logging.getLogger("pymc")): | ||
effective_level = logger.getEffectiveLevel() | ||
logger.setLevel(logging.ERROR) | ||
try: | ||
yield | ||
finally: | ||
logger.setLevel(effective_level) |
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