Github user MLnick commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11844#discussion_r62712877
  
    --- Diff: 
examples/src/main/java/org/apache/spark/examples/ml/JavaBisectingKMeansExample.java
 ---
    @@ -17,23 +17,14 @@
     
     package org.apache.spark.examples.ml;
     
    -import java.util.Arrays;
    -import java.util.List;
    -
    -import org.apache.spark.sql.RowFactory;
    -import org.apache.spark.sql.SparkSession;
     // $example on$
     import org.apache.spark.ml.clustering.BisectingKMeans;
     import org.apache.spark.ml.clustering.BisectingKMeansModel;
     import org.apache.spark.mllib.linalg.Vector;
    -import org.apache.spark.mllib.linalg.VectorUDT;
    -import org.apache.spark.mllib.linalg.Vectors;
     import org.apache.spark.sql.Dataset;
     import org.apache.spark.sql.Row;
    -import org.apache.spark.sql.types.Metadata;
    -import org.apache.spark.sql.types.StructField;
    -import org.apache.spark.sql.types.StructType;
     // $example off$
    +import org.apache.spark.sql.SparkSession;
     
     
     /**
    --- End diff --
    
    I'd like to add the "run-with" instruction to the main doc string, e.g.
    ```
    /**
     * An example demonstrating bisecting k-means clustering.
     * Run with
     * <pre>
     * bin/run-example ml.JavaBisectingKMeansExample
     * </pre>
     */
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to