Hi there, You can set print options for numpy: https://stackoverflow.com/questions/1987694/how-to-print-the-full-numpy-array-without-truncation
But you most probably don't want to do that. If you need to print them, you can iterate through them and print them, or iterate and create a string that you'd like to print, for example: ", ".join([str(x) for x in k_means.labels_]) On Fri, May 13, 2022 at 10:37 AM Mahmood Naderan <mahmood...@gmail.com> wrote: > Hi, > I have used the following lines of codes > > k_means = KMeans(n_clusters=i, > random_state=4).fit(principalComponents_dataFrame) > print(k_means.labels_) > > But the problem is for large vectors of labels, I see shortened > version like this: > > [4 4 0 ... 0 0 0] > > How can I force it to print the full length vector? > > Regards, > Mahmood > _______________________________________________ > scikit-learn mailing list > scikit-learn@python.org > https://mail.python.org/mailman/listinfo/scikit-learn >
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn