Last answered:

25 Jul 2022

Posted on:

18 Jul 2022

0

Error in the K-means clustering plot

I followed exactly what the coding is and got the following error message when trying to run the codes for plotting:

x and y must have same first dimension, but have shapes (10,) and (0,)

Why did I get such error? Thanks.

2 answers ( 0 marked as helpful)
Posted on:

18 Jul 2022

0

Please ignore my question. I got it to work out now. Thanks!

Instructor
Posted on:

25 Jul 2022

0

Hi Christine,
glad you found a solution to the problem! Let me know if something else comes up.

Best,
365 Eli

Submit an answer