https://medium.com/@monocosmo77/updates-on-hidden-markov-models-in-2023-part6-machine-learning-5d626ab0c851