[ https://issues.apache.org/jira/browse/SPARK-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074282#comment-14074282 ]
Apache Spark commented on SPARK-2547: ------------------------------------- User 'yu-iskw' has created a pull request for this issue: https://github.com/apache/spark/pull/1590 > The clustering documentaion example provided for spark 0.9.1/docs is having a > error > ----------------------------------------------------------------------------------- > > Key: SPARK-2547 > URL: https://issues.apache.org/jira/browse/SPARK-2547 > Project: Spark > Issue Type: Documentation > Components: Documentation, Examples, MLlib, PySpark > Affects Versions: 0.9.1 > Environment: All > Reporter: Rahul K Bhojwani > Labels: documentation, easyfix > Original Estimate: 1h > Remaining Estimate: 1h > > The documentation example for MLlib Clustering contains Kmeans example. > http://spark.apache.org/docs/0.9.1/mllib-guide.html#clustering-2 > Here this line mentioned below is wrong and misleading. > clusters = KMeans.train(parsedData, 2, maxIterations=10,runs=30, > initialization_mode="random") > Look at the key parameter "initialization_mode" given in example. Its wrong > as per the implementation of KMeans. It should be "initializationMode" > Correction: > clusters = KMeans.train(parsedData, 2, maxIterations=10,runs=30, > initializationMode="random") -- This message was sent by Atlassian JIRA (v6.2#6252)