katherinelyz / Stat-37810-final-project

Group Member: Yingzhao Li & Linlin Wu
0 stars 1 forks source link

k-means copied #1

Open KBurbank opened 7 years ago

KBurbank commented 7 years ago

Hi guys, I see that you have copied your k-means algorithm from the one listed here: http://stackoverflow.com/questions/31571236/my-own-k-means-algorithm-in-r

I would like to give you the chance to try this again, this time writing your own code. In particular, that algorithm uses functions like apply and tapply; these work but it can be hard to understand what they are doing. I want you to work from your understanding of what the k-means algorithm does and write simple lines of code that do those steps.

I will check again on Saturday evening to see what you've got. Kendra

katherinelyz commented 7 years ago

Dear Kendra,

I'm so sorry that the k-means algorithm is somewhat copied from the Internet, and I'm so grateful that you can give us a chance to try this again. I've just revised the algorithm based on my understanding of k-means. Hope this one works and let me know if there is any other problems. Thanks!

Yingzhao

linlin19 commented 7 years ago

Dear Kendra,

Thank you very much for letting us re-do the algorithm. Yingzhao told me that you'd like me to write one on my own. I just commit mine in a new branch.

Please let me know if there's any other problems.

Thanks again. Linlin