Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix off by one error in Chapter 1 PyMC3, #338
  • Loading branch information
Andrey Melentyev committed Oct 3, 2017
commit f99b0c740a7f5ead650d9bc6ceba1beec42d7994
2 changes: 1 addition & 1 deletion Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
"source": [
"with model:\n",
" idx = np.arange(n_count_data) # Index\n",
" lambda_ = pm.math.switch(tau >= idx, lambda_1, lambda_2)"
" lambda_ = pm.math.switch(tau > idx, lambda_1, lambda_2)"
]
},
{
Expand Down