it didn' take that long you see the results are basically what clusters assigned everything into we know that our fake data is already pre-clusteredso it seems that it identified the first and second clusters pretty easily it got little bit confused beyond that pointthoughbecause our clusters in the middle are actually little bit mushed together they're not really that distinctso that was challenge for -means but regardlessit did come up with some reasonable guesses at the clusters this is probably an example of where four clusters would more naturally fit the data activity so what want you to do for an activity is to try different value of and see what you end up with just eyeballing the preceding graphit looks like four would work well does it reallywhat happens if increase too largewhat happens to my resultswhat does it try to split things intoand does it even make sensesoplay around with ittry different values of so in the @dmvtufst functionchange the to something else run all through it again and see you end up with that' all there is to -means clustering it' just that simple you can just use scikit-learn' fbot thing from dmvtufs the only real gotchamake sure you scale the datanormalize it you want to make sure the things that you're using -means on are comparable to each otherand the tdbmf function will do that for you so those are the main things for kmeans clustering pretty simple concepteven simpler to do it using scikit-learn that' all there is to it that' -means clustering so if you have bunch of data that is unclassified and you don' really have the right answers ahead of timeit' good way to try to naturally find interesting groupings of your dataand maybe that can give you some insight into what that data is it' good tool to have 've used it before in the real world and it' really not that hard to useso keep that in your tool chest measuring entropy quite soon we're going to get to one of the cooler parts of machine learningat least think socalled decision trees but before we can talk about thatit' necessary to understand the concept of entropy in data science