Skip to content

Commit

Permalink
Made init argument to sample case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Jan 13, 2017
1 parent 8c87f73 commit 96077cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymc3/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def sample(draws, step=None, init='advi', n_init=200000, start=None,
MultiTrace object with access to sampling values
"""
model = modelcontext(model)

if init is not None:
init = init.lower()

if step is None and init is not None and pm.model.all_continuous(model.vars):
# By default, use NUTS sampler
Expand Down

0 comments on commit 96077cc

Please sign in to comment.