https://medium.com/@monocosmo77/updates-on-hidden-markov-models-in-2023-part5-machine-learning-cb28c7f910c7