forked from arviz-devs/arviz
-
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.
* update sampling wrapper base to better evaluate likelihoods * add 2 pymc3 refitting examples * fix typo * add pystan+xarray refitting notebook * Add numpyro refitting examples * black * add not working pyro example * reorganize refitting notebooks inside user_guide * add refitting examples to docs * add to changelog
- Loading branch information
1 parent
3878e17
commit fff2b2f
Showing
10 changed files
with
16,828 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ User Guide | |
========== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
data_structures | ||
computation | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
4,789 changes: 4,789 additions & 0 deletions
4,789
doc/source/user_guide/numpyro_refitting_xr_lik.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
5,164 changes: 5,164 additions & 0 deletions
5,164
doc/source/user_guide/pymc3_refitting_xr_lik.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
3,423 changes: 3,423 additions & 0 deletions
3,423
doc/source/user_guide/pystan_refitting_xr_lik.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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,8 +1,19 @@ | ||
# Sampling wrappers | ||
Sampling wrappers allow ArviZ to call PPLs in order to perform a limited | ||
subset of their capabilities and calculate stats and diagnostics that require | ||
refitting the model on different data. | ||
|
||
Their implementation is still experimental and may vary in the future. In fact | ||
there are currently two possible approaches when creating sampling wrappers. | ||
The first one delegates all calculations to the PPL | ||
whereas the second one externalizes the computation of the pointwise log | ||
likelihood to the user who is expected to write it with xarray/numpy. | ||
|
||
```{toctree} | ||
pystan_refitting | ||
pymc3_refitting | ||
numpyro_refitting | ||
pystan_refitting_xr_lik | ||
pymc3_refitting_xr_lik | ||
numpyro_refitting_xr_lik | ||
``` | ||
|
||
Examples about sampling wrappers for other libraries will be added soon to | ||
this section. |