Skip to content
Snippets Groups Projects
Commit 21385d02 authored by Bryan Cutler's avatar Bryan Cutler Committed by Nick Pentreath
Browse files

[SPARK-16261][EXAMPLES][ML] Fixed incorrect appNames in ML Examples

## What changes were proposed in this pull request?

Some appNames in ML examples are incorrect, mostly in PySpark but one in Scala.  This corrects the names.

## How was this patch tested?
Style, local tests

Author: Bryan Cutler <cutlerb@gmail.com>

Closes #13949 from BryanCutler/pyspark-example-appNames-fix-SPARK-16261.
parent 7ee9e39c
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ from pyspark.sql import SparkSession ...@@ -31,7 +31,7 @@ from pyspark.sql import SparkSession
if __name__ == "__main__": if __name__ == "__main__":
spark = SparkSession\ spark = SparkSession\
.builder\ .builder\
.appName("decision_tree_classification_example")\ .appName("DecisionTreeRegressionExample")\
.getOrCreate() .getOrCreate()
# $example on$ # $example on$
......
...@@ -35,7 +35,7 @@ if __name__ == "__main__": ...@@ -35,7 +35,7 @@ if __name__ == "__main__":
# Creates a SparkSession # Creates a SparkSession
spark = SparkSession \ spark = SparkSession \
.builder \ .builder \
.appName("PythonKMeansExample") \ .appName("LDAExample") \
.getOrCreate() .getOrCreate()
# $example on$ # $example on$
......
...@@ -33,7 +33,7 @@ Run with: ...@@ -33,7 +33,7 @@ Run with:
if __name__ == "__main__": if __name__ == "__main__":
spark = SparkSession \ spark = SparkSession \
.builder \ .builder \
.appName("SimpleTextClassificationPipeline") \ .appName("SimpleParamsExample") \
.getOrCreate() .getOrCreate()
# prepare training data. # prepare training data.
......
...@@ -27,7 +27,7 @@ object CountVectorizerExample { ...@@ -27,7 +27,7 @@ object CountVectorizerExample {
def main(args: Array[String]) { def main(args: Array[String]) {
val spark = SparkSession val spark = SparkSession
.builder .builder
.appName("CounterVectorizerExample") .appName("CountVectorizerExample")
.getOrCreate() .getOrCreate()
// $example on$ // $example on$
......
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