spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MEETHU MATHEW <meethu2...@yahoo.co.in>
Subject Re: Restricting the number of iterations in Mllib Kmeans
Date Mon, 18 May 2015 10:22:48 GMT
Hi,I think you cant supply an initial set of centroids to kmeans Thanks & Regards,
Meethu M 


     On Friday, 15 May 2015 12:37 AM, Suman Somasundar <suman.somasundar@oracle.com>
wrote:
   

 <!--#yiv5602900621 _filtered #yiv5602900621 {font-family:"Cambria Math";panose-1:2 4 5
3 5 4 6 3 2 4;} _filtered #yiv5602900621 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2
4;}#yiv5602900621 #yiv5602900621 p.yiv5602900621MsoNormal, #yiv5602900621 li.yiv5602900621MsoNormal,
#yiv5602900621 div.yiv5602900621MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri",
"sans-serif";}#yiv5602900621 a:link, #yiv5602900621 span.yiv5602900621MsoHyperlink {color:blue;text-decoration:underline;}#yiv5602900621
a:visited, #yiv5602900621 span.yiv5602900621MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv5602900621
span.yiv5602900621EmailStyle17 {font-family:"Calibri", "sans-serif";color:windowtext;}#yiv5602900621
.yiv5602900621MsoChpDefault {} _filtered #yiv5602900621 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv5602900621
div.yiv5602900621WordSection1 {}-->Hi,,

I want to run a definite number of iterations in Kmeans.  There is a command line argument
to set maxIterations, but even if I set it to a number, Kmeans runs until the centroids converge.
Is there a specific way to specify it in command line?
Also, I wanted to know if we can supply the initial set of centroids to the program instead
of it choosing the centroids in random?  Thanks,
Suman.

  
Mime
View raw message