https://365datascience.com/dwqa-answer/answer-for-kmeans-label-attribute/ -
Hi Liqian,
You need to fit your kmeans_pca first, for it to have the labels_ attribute.
So, you should make sure you run this line:
kmeans_pca.fit(scores_pca)
before you create the df_segm_pca_kmeans table.
Hope this helps!
Best,
Eli
#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy
No comments:
Post a Comment