Incorrect plot for the same code

i Have replicated the same code as implemented in the video, then i got the wrong plot but same error was encountered in the video as well , but in video the error that came at 5:48 was resolved by just removing the color property , and infact after rentering the same property the plot was correct, but in my case i have tried everything but i am not getting the colored plot at all, i even re-ran the code of video by taking github , but it was still not giving the colored plot. The irony is that for exactly same code i am not getting the colored plot at all :frowning: plz help!

Hey @saksham_thukral, match your code line by line from here, if you didn’t find any mistake than try to run this code only, and check it this works fine or not.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I think there is a bug in the code here. Before calling the function plotClusters(clusters) in In(85), we must call the function assignPointToClusters(clusters) first. Otherwise the points of datasets will not be displayed, i mean the same error will occur as 5.12 in the K-Means implementing M-step video.