Skip to content

Commit f99b0c7

Browse files
author
Andrey Melentyev
committed
Fix off by one error in Chapter 1 PyMC3, CamDavidsonPilon#338
1 parent cf47222 commit f99b0c7

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
@@ -678,7 +678,7 @@
678678
"source": [
679679
"with model:\n",
680680
" idx = np.arange(n_count_data) # Index\n",
681-
" lambda_ = pm.math.switch(tau >= idx, lambda_1, lambda_2)"
681+
" lambda_ = pm.math.switch(tau > idx, lambda_1, lambda_2)"
682682
]
683683
},
684684
{

0 commit comments

Comments
 (0)