Skip to content

Commit c1b9272

Browse files
authored
Merge pull request #3586 from rpgoldman/sample-docstring
Clean up docstring for `sample`.
2 parents 3746666 + 7998ebb commit c1b9272

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pymc3/sampling.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ def sample(draws=500, step=None, init='auto', n_init=200000, start=None, trace=N
186186
draws : int
187187
The number of samples to draw. Defaults to 500. The number of tuned samples are discarded
188188
by default. See ``discard_tuned_samples``.
189-
step : function or iterable of functions
190-
A step function or collection of functions. If there are variables without a step methods,
191-
step methods for those variables will be assigned automatically.
192189
init : str
193190
Initialization method to use for auto-assigned NUTS samplers.
194191
@@ -209,6 +206,11 @@ def sample(draws=500, step=None, init='auto', n_init=200000, start=None, trace=N
209206
* advi_map: Initialize ADVI with MAP and use MAP as starting point.
210207
* map : Use the MAP as starting point. This is discouraged.
211208
* nuts : Run NUTS and estimate posterior mean and mass matrix from the trace.
209+
step : function or iterable of functions
210+
A step function or collection of functions. If there are variables without step methods,
211+
step methods for those variables will be assigned automatically. By default the NUTS step
212+
method will be used, if appropriate to the model; this is a good default for beginning
213+
users.
212214
n_init : int
213215
Number of iterations of initializer. Only works for 'nuts' and 'ADVI'.
214216
If 'ADVI', number of iterations, if 'nuts', number of draws.

0 commit comments

Comments
 (0)