If you struggle with Turing and autodiff, also note that you can incorporate priors directly in HiddenMarkovModels, to perform MAP estimation instead of MLE. All it takes is to overload logdensityof(hmm::MyCustomHMM). Take a look at this tutorial to learn more.
1 Like