K means intuition (def optionally plot progress)

Please I have a problem with the K means algorithm code there’s a point in the def run _kmeans, the part that says optionally plot progress, I don’t understand that part please can you explain it to me very well. Thanks a lot for the time.

Hi,

After running the cell there’s a plot that appears after the K iterations.
If you set plot_progress to False, that plot does not show.

1 Like

Ok thanks this kinda confused me but it’s better now