Help converting pymc3 switchpoint analysis code to Turing.jl

Thanks for reaching out @trappmartin , the reason for python to be n_count -1 is since its 0 indexed - therefore the length of a list (data) is different from the index of the last item.

And the code is talked about here: Jupyter Notebook Viewer

And does the switch statement make sense to you? I this how you would implement pm.switch in turing?

Thanks again!