FAQ: K-Means Clustering - Visualize After K-Means

This community-built FAQ covers the “Visualize After K-Means” exercise from the lesson “K-Means Clustering”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Data Science

Machine Learning

FAQs on the exercise Visualize After K-Means

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

does the accuracy score mean something for this particular model, as the iris data provides the true labels can we test we our predictions?

print(accuracy_score(iris.target, labels))

when I try to find the score like this, it gives me something around 24%, which is not really good seems to me. so does this score really mean something?

1 Like

It seems to be the topic of the next exercise. Note that 0, 1, 2 in target and 0, 1, 2 in labels do not necessarily have the same meaning.