The lecture shows the output as given below :--
while the output as per the refactored code is :--
notice the 3rd state where we have got rain instead of sun as in the lecture
I couldn't figure out the problem, maybe there is some change in algorithm for hmmlearn as compared to pomegranate?