Hi,
I have done the same as given in hint but getting assertion error. What to do?
{moderator edit: code removed}
Hi,
I have done the same as given in hint but getting assertion error. What to do?
{moderator edit: code removed}
Your code uses K for both the number of examples and the number of centroids.
Both of those cannot be correct.
Also, please don’t post your code on the forum. That isn’t allowed by the Code of Conduct.