Skip to content
Snippets Groups Projects
Commit 67c75828 authored by Yuhao Yang's avatar Yuhao Yang Committed by Xiangrui Meng
Browse files

[SPARK-11816][ML] fix some style issue in ML/MLlib examples

jira: https://issues.apache.org/jira/browse/SPARK-11816
Currently I only fixed some obvious comments issue like
// scalastyle:off println
on the bottom.

Yet the style in examples is not quite consistent, like only half of the examples  are with
// Example usage: ./bin/run-example mllib.FPGrowthExample \,

Author: Yuhao Yang <hhbyyh@gmail.com>

Closes #9808 from hhbyyh/exampleStyle.
parent 9c0654d3
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ import org.apache.spark.sql.types.StructType;
* An example demonstrating a k-means clustering.
* Run with
* <pre>
* bin/run-example ml.JavaSimpleParamsExample <file> <k>
* bin/run-example ml.JavaKMeansExample <file> <k>
* </pre>
*/
public class JavaKMeansExample {
......
......@@ -59,4 +59,4 @@ object AFTSurvivalRegressionExample {
sc.stop()
}
}
// scalastyle:off println
// scalastyle:on println
......@@ -90,3 +90,4 @@ object DecisionTreeClassificationExample {
// $example off$
}
}
// scalastyle:on println
......@@ -78,3 +78,4 @@ object DecisionTreeRegressionExample {
// $example off$
}
}
// scalastyle:on println
......@@ -66,4 +66,4 @@ object MultilayerPerceptronClassifierExample {
sc.stop()
}
}
// scalastyle:off println
// scalastyle:on println
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment