Hidden Markov Models, Statistics, Data Science, Machine Learning, Editors Pick.
hmm.CategoricalHMM(n_components=2, random_state=425, init_params='ste') # initial probabilities # probability of starting in the Tired state = 0 # probability of starting in the Happy state = 1 initial_distribution = np.array([0.1, 0.9]) model.startprob_ = initial_distribution print("Step 1.