Skip to content

Commit 9ee3bcd

Browse files
committed
Moved MCMCSummary to diagnostics in docs. Closes #1281
1 parent ce0f588 commit 9ee3bcd

7 files changed

Lines changed: 16 additions & 23 deletions

File tree

docs/source/diagnostic_plots.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ Diagnostic plots
77
For users who have Matplotlib installed, Pints offers a number of diagnostic
88
plots that can be used to quickly check obtained results.
99

10-
Plotting functions:
10+
Plots of functions:
1111

1212
- :func:`function`
1313
- :func:`function_between_points`
1414
- :func:`surface`
1515

16-
Diagnosing MCMC results:
16+
MCMC Diagnostic plots:
1717

1818
- :func:`autocorrelation`
1919
- :func:`histogram`
2020
- :func:`pairwise`
2121
- :func:`series`
2222
- :func:`trace`
2323

24-
Functions
25-
---------
24+
Plots of functions
25+
------------------
2626

2727
.. autofunction:: function
2828

2929
.. autofunction:: function_between_points
3030

3131
.. autofunction:: surface
3232

33-
MCMC Diagnostics
34-
----------------
33+
MCMC Diagnostic plots
34+
---------------------
3535

3636
.. autofunction:: autocorrelation
3737

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ Contents
146146
abc_samplers/index
147147
boundaries
148148
core_classes_and_methods
149-
diagnostics
150149
diagnostic_plots
151150
error_measures
152151
function_evaluation
@@ -155,6 +154,7 @@ Contents
155154
log_pdfs
156155
log_priors
157156
mcmc_samplers/index
157+
mcmc_diagnostics
158158
nested_samplers/index
159159
noise_generators
160160
optimisers/index
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
***********************
2-
Diagnosing MCMC results
3-
***********************
1+
****************
2+
MCMC Diagnostics
3+
****************
44

55
.. currentmodule:: pints
66

7-
Pints provides a number of functions to diagnose MCMC progress and convergence.
7+
PINTS provides a number of functions to diagnose MCMC progress and convergence.
88

9+
.. autoclass:: MCMCSummary
910

1011
.. autofunction:: rhat
1112

docs/source/mcmc_samplers/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ interface, that can be used to sample from an unknown
3333
slice_doubling_mcmc
3434
slice_rank_shrinking_mcmc
3535
slice_stepout_mcmc
36-
summary_mcmc
36+

docs/source/mcmc_samplers/summary_mcmc.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

pints/_diagnostics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _between(chains):
133133
def rhat(chains, warm_up=0.0):
134134
r"""
135135
Returns the convergence measure :math:`\hat{R}` for the approximate
136-
posterior according to [1]_.
136+
posterior according to [3]_.
137137
138138
:math:`\hat{R}` diagnoses convergence by checking mixing and stationarity
139139
of :math:`m` chains (at least two, :math:`m\geq 2`). To diminish the
@@ -180,8 +180,8 @@ def rhat(chains, warm_up=0.0):
180180
181181
References
182182
----------
183-
.. [1] "Bayesian data analysis", ch. 11.4 'Inference and assessing
184-
convergence', 3rd edition, Gelman et al., 2014.
183+
.. [3] "Bayesian data analysis", ch. 11.4 'Inference and assessing
184+
convergence', 3rd edition, Gelman et al., 2014.
185185
186186
Parameters
187187
----------

pints/_mcmc/_monomial_gamma_hamiltonian.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class MonomialGammaHamiltonianMCMC(pints.SingleChainMCMC):
7272
Lawrence Cari.
7373
Advances in Neural Information Processing Systems (NIPS)
7474
75-
7675
.. [2] MCMC using Hamiltonian dynamics
7776
Radford M. Neal, Chapter 5 of the Handbook of Markov Chain Monte
7877
Carlo by Steve Brooks, Andrew Gelman, Galin Jones, and Xiao-Li Meng.

0 commit comments

Comments
 (0)