diff options
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 |