diff options
author | Sean Owen <sowen@cloudera.com> | 2015-07-31 13:45:28 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-07-31 13:45:28 -0700 |
commit | 873ab0f9692d8ea6220abdb8d9200041068372a8 (patch) | |
tree | e1116f9c5a53c796943ad189be61aceca5f31653 /docs/mllib-feature-extraction.md | |
parent | 815c8245f47e61226a04e2e02f508457b5e9e536 (diff) | |
download | spark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.gz spark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.bz2 spark-873ab0f9692d8ea6220abdb8d9200041068372a8.zip |
[SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement
Use print(x) not print x for Python 3 in eval examples
CC sethah mengxr -- just wanted to close this out before 1.5
Author: Sean Owen <sowen@cloudera.com>
Closes #7822 from srowen/SPARK-9490 and squashes the following commits:
01abeba [Sean Owen] Change "print x" to "print(x)" in the rest of the docs too
bd7f7fb [Sean Owen] Use print(x) not print x for Python 3 in eval examples
Diffstat (limited to 'docs/mllib-feature-extraction.md')
-rw-r--r-- | docs/mllib-feature-extraction.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/mllib-feature-extraction.md b/docs/mllib-feature-extraction.md index a69e41e2a1..de86aba2ae 100644 --- a/docs/mllib-feature-extraction.md +++ b/docs/mllib-feature-extraction.md @@ -221,7 +221,7 @@ model = word2vec.fit(inp) synonyms = model.findSynonyms('china', 40) for word, cosine_distance in synonyms: - print "{}: {}".format(word, cosine_distance) + print("{}: {}".format(word, cosine_distance)) {% endhighlight %} </div> </div> |