Skip to content

Commit d57000d

Browse files
committed
DOC Add None option for NUTS intialization.
1 parent dbf0654 commit d57000d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/sampling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,13 @@ def sample(draws, step=None, init='advi', n_init=500000, start=None,
9898
A step function or collection of functions. If no step methods are
9999
specified, or are partially specified, they will be assigned
100100
automatically (defaults to None).
101-
init : str {'advi', 'advi_map', 'map', 'nuts'}
101+
init : str {'advi', 'advi_map', 'map', 'nuts', None}
102102
Initialization method to use.
103103
* advi : Run ADVI to estimate posterior mean and diagonal covariance matrix.
104104
* advi_map: Initialize ADVI with MAP and use MAP as starting point.
105105
* map : Use the MAP as starting point.
106106
* nuts : Run NUTS and estimate posterior mean and covariance matrix.
107+
* None : Do not initialize.
107108
n_init : int
108109
Number of iterations of initializer
109110
If 'advi', number of iterations, if 'nuts', number of draws.

0 commit comments

Comments
 (0)