-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replaced all theano calls with the respective aesara calls. First steps to upgrade to pymc4 * Replaced last occurrences of theano in the docstrings * Updated example script: one_bundesland * Further work on example script, also moved plotting routines into folder. * Moved timeseries and distribution plot into own files. Also refactored to use inferenceData * Rerun one_bundelsand example script. * Added watermark to example_one_bundesland notebook * Updated example bundeslaender script * Rerun what if notebook * Rerun paper scenario * Fixed docs Co-authored-by: semohr <[email protected]>
- Loading branch information
Showing
41 changed files
with
3,294 additions
and
2,487 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 |
---|---|---|
|
@@ -21,6 +21,8 @@ python: | |
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
|
||
install: | ||
- pip install --upgrade pip | ||
|
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,9 +1,4 @@ | ||
# ------------------------------------------------------------------------------ # | ||
# @Author: F. Paul Spitzner | ||
# @Email: [email protected] | ||
# @Created: 2020-04-21 08:57:53 | ||
# @Last Modified: 2020-05-20 10:48:23 | ||
# ------------------------------------------------------------------------------ # | ||
# Let's have a dummy instance of model and trace so we can play around with the | ||
# interface and plotting. | ||
# Analog to example_bundeslaender.ipynb | ||
|
@@ -12,7 +7,7 @@ | |
import logging | ||
|
||
import numpy as np | ||
import pymc3 as pm | ||
import pymc as pm | ||
import datetime | ||
|
||
from .model import * | ||
|
@@ -23,14 +18,14 @@ | |
|
||
def create_example_instance(num_change_points=3): | ||
""" | ||
Parameters | ||
---------- | ||
num_change_points : int | ||
the standard change points to inlcude, at most 3 | ||
Retruns | ||
------- | ||
(model, trace) with example data | ||
Parameters | ||
---------- | ||
num_change_points : int | ||
the standard change points to inlcude, at most 3 | ||
Retruns | ||
------- | ||
(model, trace) with example data | ||
""" | ||
|
||
jhu = data_retrieval.JHU() | ||
|
@@ -98,6 +93,6 @@ def create_example_instance(num_change_points=3): | |
student_t_likelihood(new_cases_inferred) | ||
|
||
# make it fast | ||
trace = pm.sample(model=model, tune=1, draws=1) | ||
idata = pm.sample(model=model, tune=1, draws=1) | ||
|
||
return model, trace | ||
return model, idata |
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 +1 @@ | ||
__version__ = "0.3.6" | ||
__version__ = "0.4.0" |
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
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
Oops, something went wrong.