NLP, Python, Scikit Learn.
plotting the 3D version, clusters start to emerge. x_train_3d = pca_reduce(x_train_padded,3) model = OPTICS(min_samples=10).fit(np.array(x_train_3d)) print(model.labels_) # [-1 2 5 -1 -1 -1 -1 2 2 0 2 3 -1 -1 1 3 -1 -1 4 -1 4 3 5 -1 # -1 3 0 -1 4 1 2 0 -1 4 -1 -1 -1 4 -1 -1 2 2 -1 -1 -1 -1 -1 -1 #