NLP, Python.
object is trained on the input data. kmeans.fit(x_train) And then the resulting clusters can be checked. print(kmeans.labels_.shape) #(272,) print(kmeans.labels_) #[0 0 5 3 6 6 3 0 0 0 0 0 0 3 0 0 0 6 0 3 6 0 5 0 1 6 0 3 6 0 0 0 6 6 0 6 0# 6 3 0 0 0 3 6 6 0 3 3 0 0 0 3 0 1 5 3 0 0 0 0 6 0 0 5 6 3 5