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