Skip to content

Commit 87e2469

Browse files
committed
Added pm. before Model call
1 parent 3d5b521 commit 87e2469

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def __init__(self, mean=0, sigma=1, name=''):
473473
474474
# 4) this syntax will also work as we are in the
475475
# context of instance itself, names are given as usual
476-
pm.Normal('v2', mu=mean, sigma=sigma
476+
pm.Normal('v2', mu=mean, sigma=sigma)
477477
478478
# something more complex is allowed, too
479479
half_cauchy = pm.HalfCauchy('sd', beta=10, initval=1.)
@@ -490,7 +490,7 @@ def __init__(self, mean=0, sigma=1, name=''):
490490
491491
# I:
492492
# state the model within a context
493-
with Model() as model:
493+
with pm.Model() as model:
494494
CustomModel()
495495
# arbitrary actions
496496
@@ -505,7 +505,7 @@ def __init__(self, mean=0, sigma=1, name=''):
505505
506506
# IV:
507507
# use many custom models within one context
508-
with Model() as model:
508+
with pm.Model() as model:
509509
CustomModel(mean=1, name='first')
510510
CustomModel(mean=2, name='second')
511511

0 commit comments

Comments
 (0)