Skip to content

Commit

Permalink
[SPARK-16261][EXAMPLES][ML] Fixed incorrect appNames in ML Examples
Browse files Browse the repository at this point in the history
## 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 <[email protected]>

Closes apache#13949 from BryanCutler/pyspark-example-appNames-fix-SPARK-16261.
  • Loading branch information
BryanCutler authored and Nick Pentreath committed Jun 29, 2016
1 parent 7ee9e39 commit 21385d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
if __name__ == "__main__":
spark = SparkSession\
.builder\
.appName("decision_tree_classification_example")\
.appName("DecisionTreeRegressionExample")\
.getOrCreate()

# $example on$
Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/python/ml/lda_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Creates a SparkSession
spark = SparkSession \
.builder \
.appName("PythonKMeansExample") \
.appName("LDAExample") \
.getOrCreate()

# $example on$
Expand Down
2 changes: 1 addition & 1 deletion examples/src/main/python/ml/simple_params_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if __name__ == "__main__":
spark = SparkSession \
.builder \
.appName("SimpleTextClassificationPipeline") \
.appName("SimpleParamsExample") \
.getOrCreate()

# prepare training data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object CountVectorizerExample {
def main(args: Array[String]) {
val spark = SparkSession
.builder
.appName("CounterVectorizerExample")
.appName("CountVectorizerExample")
.getOrCreate()

// $example on$
Expand Down

0 comments on commit 21385d0

Please sign in to comment.