from hmmlearn.hmm import GaussianHMM model = GaussianHMM(n_components=3, n_features=2)
model.fit(X)
hidden_states = model.predict(Y)In summary, the GaussianHMM module of the hmmlearn library is a useful tool for modeling time series data with hidden Markov models.