Skip to content

Commit a8a678d

Browse files
author
Christopher Fonnesbeck
committed
Fixed multiple disp argument bug
1 parent 2e0d904 commit a8a678d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymc3/examples/discrete_find_MAP.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# to specify if we would like to use the discrete variables.
3131

3232
with model:
33-
print(mc.find_MAP(vars=model.vars, disp=True))
33+
print(mc.find_MAP(vars=model.vars))
3434

3535
# We set the `disp` variable to display a warning that we are using a
3636
# non-gradient minimization technique, as discrete variables do not give much

pymc3/tuning/starting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def find_MAP(start=None, vars=None, fmin=None, return_raw=False,
4747
disc_vars = list(typefilter(vars, discrete_types))
4848

4949
disp = model.verbose > 1
50-
50+
5151
if disc_vars and disp:
5252
print("Warning: vars contains discrete variables. MAP " +
5353
"estimates may not be accurate for the default " +

0 commit comments

Comments
 (0)