Skip to content

Commit 1522492

Browse files
authored
get docs for stats and plots to link to ArviZ (#3927)
* get docs for stats and plots to link to ArviZ * update release notes
1 parent 9e8a20d commit 1522492

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

Diff for: RELEASE-NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- `pm.LKJCholeskyCov` now automatically computes and returns the unpacked Cholesky decomposition, the correlations and the standard deviations of the covariance matrix (see [#3881](https://github.com/pymc-devs/pymc3/pull/3881)).
1717
- `pm.Data` container can now be used for index variables, i.e with integer data and not only floats (issue [#3813](https://github.com/pymc-devs/pymc3/issues/3813), fixed by [#3925](https://github.com/pymc-devs/pymc3/pull/3925)).
1818
- `pm.Data` container can now be used as input for other random variables (issue [#3842](https://github.com/pymc-devs/pymc3/issues/3842), fixed by [#3925](https://github.com/pymc-devs/pymc3/pull/3925)).
19+
- Plots and Stats API sections now link to ArviZ documentation [#3927](https://github.com/pymc-devs/pymc3/pull/3927)
1920

2021
### Maintenance
2122
- Tuning results no longer leak into sequentially sampled `Metropolis` chains (see #3733 and #3796).

Diff for: docs/source/api/plots.rst

+16-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@ Plots
33
*****
44

55
.. currentmodule:: pymc3.plots
6+
Plots are delegated to the
7+
`ArviZ <https://arviz-devs.github.io/arviz/index.html>`_.
8+
library, a general purpose library for
9+
"exploratory analysis of Bayesian models."
10+
For plots, ``pymc3.<function>`` are now aliases
11+
for ArviZ functions. Thus, the links below will redirect you to
12+
ArviZ docs:
613

7-
.. automodule:: pymc3.plots
8-
:members: traceplot, plot_posterior, forestplot, compareplot, autocorrplot,
9-
energyplot, kdeplot, densityplot, pairplot
14+
- :func:`pymc3.traceplot <arviz:arviz.plot_trace>`
15+
- :func:`pymc3.plot_posterior <arviz:arviz.plot_posterior>`
16+
- :func:`pymc3.forestplot <arviz:arviz.plot_forest>`
17+
- :func:`pymc3.compareplot <arviz:arviz.plot_compare>`
18+
- :func:`pymc3.autocorrplot <arviz:arviz.plot_autocorr>`
19+
- :func:`pymc3.energyplot <arviz:arviz.plot_energy>`
20+
- :func:`pymc3.kdeplot <arviz:arviz.plot_kde>`
21+
- :func:`pymc3.densityplot <arviz:arviz.plot_density>`
22+
- :func:`pymc3.pairplot <arviz:arviz.plot_pair>`

Diff for: docs/source/api/stats.rst

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
*****
22
Stats
33
*****
4+
Statistics and diagnostics are delegated to the
5+
`ArviZ <https://arviz-devs.github.io/arviz/index.html>`_.
6+
library, a general purpose library for
7+
"exploratory analysis of Bayesian models."
8+
For statistics and diagnostics, ``pymc3.<function>`` are now aliases
9+
for ArviZ functions. Thus, the links below will redirect you to
10+
ArviZ docs:
411

512
.. currentmodule:: pymc3.stats
613

7-
.. automodule:: pymc3.stats
8-
:members:
14+
15+
- :func:`pymc3.bfmi <arviz:arviz.bfmi>`
16+
- :func:`pymc3.compare <arviz:arviz.compare>`
17+
- :func:`pymc3.ess <arviz:arviz.ess>`
18+
- :data:`pymc3.geweke <arviz:arviz.geweke>`
19+
- :func:`pymc3.hpd <arviz:arviz.hpd>`
20+
- :func:`pymc3.loo <arviz:arviz.loo>`
21+
- :func:`pymc3.mcse <arviz:arviz.mcse>`
22+
- :func:`pymc3.r2_score <arviz:arviz.r2_score>`
23+
- :func:`pymc3.rhat <arviz:arviz.rhat>`
24+
- :func:`pymc3.summary <arviz:arviz.summary>`
25+
- :func:`pymc3.waic <arviz:arviz.waic>`

Diff for: docs/source/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"sphinx.ext.autodoc",
3838
"sphinx.ext.autosummary",
3939
"sphinx.ext.mathjax",
40+
"sphinx.ext.intersphinx",
4041
"nbsphinx",
4142
"numpydoc",
4243
"IPython.sphinxext.ipython_console_highlighting",
@@ -130,6 +131,11 @@
130131
# If true, `todo` and `todoList` produce output, else they produce nothing.
131132
todo_include_todos = False
132133

134+
# intersphinx configuration to ease linking arviz docs
135+
intersphinx_mapping = {
136+
"arviz": ("https://arviz-devs.github.io/arviz/", None),
137+
}
138+
133139

134140
# -- Options for HTML output ----------------------------------------------
135141

0 commit comments

Comments
 (0)