Skip to content

Commit

Permalink
Improved docstring for chains argument in sample
Browse files Browse the repository at this point in the history
Now explains what happens when chains is left as None
  • Loading branch information
Chris Fonnesbeck committed Nov 24, 2017
1 parent a222c86 commit bcd53d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymc3/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,10 @@ def sample(draws=500, step=None, init='auto', n_init=200000, start=None,
chains : int
The number of chains to sample. Running independent chains
is important for some convergence statistics and can also
reveal multiple modes in the posterior.
reveal multiple modes in the posterior. If `None`, then set to
either `njobs` or 2, whichever is larger.
njobs : int
The number of chains to run in parallel. If None, set to the
The number of chains to run in parallel. If `None`, set to the
number of CPUs in the system, but at most 4. Keep in mind that
some chains might themselves be multithreaded via openmp or
BLAS. In those cases it might be faster to set this to one.
Expand Down

0 comments on commit bcd53d9

Please sign in to comment.