Skip to content

Commit 93dfde9

Browse files
Merge pull request CamDavidsonPilon#339 from taylorterry3/master
fix off by 1 in pymc3 (issue 338)
2 parents 617a181 + 99f9355 commit 93dfde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@
658658
" lambda_1 = pm.Exponential(\"lambda_1\", alpha)\n",
659659
" lambda_2 = pm.Exponential(\"lambda_2\", alpha)\n",
660660
" \n",
661-
" tau = pm.DiscreteUniform(\"tau\", lower=0, upper=n_count_data)"
661+
" tau = pm.DiscreteUniform(\"tau\", lower=0, upper=n_count_data - 1)"
662662
]
663663
},
664664
{

0 commit comments

Comments
 (0)