Github user yinxusen commented on a diff in the pull request: https://github.com/apache/spark/pull/11116#discussion_r52960059 --- Diff: examples/src/main/scala/org/apache/spark/examples/mllib/PowerIterationClusteringExample.scala --- @@ -18,141 +18,42 @@ // scalastyle:off println package org.apache.spark.examples.mllib -import org.apache.log4j.{Level, Logger} -import scopt.OptionParser - import org.apache.spark.{SparkConf, SparkContext} -import org.apache.spark.mllib.clustering.PowerIterationClustering -import org.apache.spark.rdd.RDD +// $example on$ +import org.apache.spark.mllib.clustering.{PowerIterationClustering, PowerIterationClusteringModel} +// $example off$ -/** --- End diff -- For `PowerIterationClusteringExample` and `JavaPowerIterationClusteringExample`, if there are previous example codes, we can use them other than change them.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org