diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-03 22:42:12 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-03-03 22:42:12 +0000 |
commit | 941b270b706d3b4aea73dbf102cfb6eee0beff63 (patch) | |
tree | 0633f68f062bd49152267f97b79f7598b53c5e0b /examples/src/main/python/mllib | |
parent | 52035d103661721a8f87c2f6788c6411f645a99d (diff) | |
download | spark-941b270b706d3b4aea73dbf102cfb6eee0beff63.tar.gz spark-941b270b706d3b4aea73dbf102cfb6eee0beff63.tar.bz2 spark-941b270b706d3b4aea73dbf102cfb6eee0beff63.zip |
[MINOR] Fix typos in comments and testcase name of code
## What changes were proposed in this pull request?
This PR fixes typos in comments and testcase name of code.
## How was this patch tested?
manual.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11481 from dongjoon-hyun/minor_fix_typos_in_code.
Diffstat (limited to 'examples/src/main/python/mllib')
-rw-r--r-- | examples/src/main/python/mllib/naive_bayes_example.py | 2 | ||||
-rw-r--r-- | examples/src/main/python/mllib/ranking_metrics_example.py | 2 | ||||
-rw-r--r-- | examples/src/main/python/mllib/word2vec.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/main/python/mllib/naive_bayes_example.py b/examples/src/main/python/mllib/naive_bayes_example.py index e7d5893d67..35724f7d6a 100644 --- a/examples/src/main/python/mllib/naive_bayes_example.py +++ b/examples/src/main/python/mllib/naive_bayes_example.py @@ -47,7 +47,7 @@ if __name__ == "__main__": # $example on$ data = sc.textFile('data/mllib/sample_naive_bayes_data.txt').map(parseLine) - # Split data aproximately into training (60%) and test (40%) + # Split data approximately into training (60%) and test (40%) training, test = data.randomSplit([0.6, 0.4], seed=0) # Train a naive Bayes model. diff --git a/examples/src/main/python/mllib/ranking_metrics_example.py b/examples/src/main/python/mllib/ranking_metrics_example.py index 327791966c..21333deded 100644 --- a/examples/src/main/python/mllib/ranking_metrics_example.py +++ b/examples/src/main/python/mllib/ranking_metrics_example.py @@ -47,7 +47,7 @@ if __name__ == "__main__": # Instantiate regression metrics to compare predicted and actual ratings metrics = RegressionMetrics(scoreAndLabels) - # Root mean sqaured error + # Root mean squared error print("RMSE = %s" % metrics.rootMeanSquaredError) # R-squared diff --git a/examples/src/main/python/mllib/word2vec.py b/examples/src/main/python/mllib/word2vec.py index 40d1b88792..4e7d4f7610 100644 --- a/examples/src/main/python/mllib/word2vec.py +++ b/examples/src/main/python/mllib/word2vec.py @@ -16,7 +16,7 @@ # # This example uses text8 file from http://mattmahoney.net/dc/text8.zip -# The file was downloadded, unziped and split into multiple lines using +# The file was downloaded, unzipped and split into multiple lines using # # wget http://mattmahoney.net/dc/text8.zip # unzip text8.zip |