Skip to content

Commit e6dfd2e

Browse files
author
Junpeng Lao
committed
clean up
1 parent 150cedc commit e6dfd2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pymc3/examples/lasso_missing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
'mother_hs', 'early_ident']].astype(float).values.T
1515

1616
with pm.Model() as model:
17-
1817
# Impute missing values
1918
sib_mean = pm.Exponential('sib_mean', 1.)
2019
siblings_imp = pm.Poisson('siblings_imp', sib_mean,
@@ -35,7 +34,7 @@
3534
beta[4] * age + beta[5] * mother_imp + beta[6] * early_ident)
3635

3736
observed_score = pm.Normal(
38-
'observed_score', expected_score, tau=s, observed=score)
37+
'observed_score', expected_score, s, observed=score)
3938

4039

4140
with model:
@@ -50,7 +49,7 @@ def run(n=5000):
5049
if n == 'short':
5150
n = 100
5251
with model:
53-
pm.sample(n, [step1, step2], start)
52+
pm.sample(n, step=[step1, step2], start=start)
5453

5554

5655
if __name__ == '__main__':

0 commit comments

Comments
 (0)