You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by MEETHU MATHEW <me...@yahoo.co.in> on 2014/09/18 07:26:40 UTC
Python version of kmeans
Hi all,
I need the kmeans code written against Pyspark for some testing purpose.
Can somebody tell me the difference between these two files.
spark-1.0.1/examples/src/main/python/kmeans.py and
spark-1.0.1/python/pyspark/mllib/clustering.py
Thanks & Regards,
Meethu M
Re: Python version of kmeans
Posted by Burak Yavuz <by...@stanford.edu>.
Hi,
spark-1.0.1/examples/src/main/python/kmeans.py => Naive example for users to understand how to code in Spark
spark-1.0.1/python/pyspark/mllib/clustering.py => Use this!!!
Bonus: spark-1.0.1/examples/src/main/python/mllib/kmeans.py => Example on how to call KMeans. Feel free to use it as a template!
Best,
Burak
----- Original Message -----
From: "MEETHU MATHEW" <me...@yahoo.co.in>
To: user@spark.apache.org
Sent: Wednesday, September 17, 2014 10:26:40 PM
Subject: Python version of kmeans
Hi all,
I need the kmeans code written against Pyspark for some testing purpose.
Can somebody tell me the difference between these two files.
spark-1.0.1/examples/src/main/python/kmeans.py and
spark-1.0.1/python/pyspark/mllib/clustering.py
Thanks & Regards,
Meethu M
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org