Unsupervised Learning, Clustering, K Means, Lda, Topic Modeling.
gm.fit(ts_data.reshape(-1, 1)) states = gm.predict(ts_data.reshape(-1, 1)) #Plot color_dict = {0:"r",1:"g",2:"b"} color_array = [color_dict[i] for i in states] plt.scatter(range(len(ts_data)), ts_data, c=color_array) plt.title("HMM Model") As with every clustering problem, deciding the number of