diff options
author | RJ Nowling <rnowling@gmail.com> | 2014-09-22 09:10:41 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-09-22 09:10:41 -0700 |
commit | fec921552ffccc36937214406b3e4a050eb0d8e0 (patch) | |
tree | ce36ea494eac5fbc9971783cd31d3187e72402dd | |
parent | fd0b32c520e3d1088b2fe9228be114932e6c3a0c (diff) | |
download | spark-fec921552ffccc36937214406b3e4a050eb0d8e0.tar.gz spark-fec921552ffccc36937214406b3e4a050eb0d8e0.tar.bz2 spark-fec921552ffccc36937214406b3e4a050eb0d8e0.zip |
[MLLib] Fix example code variable name misspelling in MLLib Feature Extraction guide
Author: RJ Nowling <rnowling@gmail.com>
Closes #2459 from rnowling/tfidf-fix and squashes the following commits:
b370a91 [RJ Nowling] Fix variable name misspelling in MLLib Feature Extraction guide
-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 44f0f76220..41a27f6208 100644 --- a/docs/mllib-feature-extraction.md +++ b/docs/mllib-feature-extraction.md @@ -68,7 +68,7 @@ val sc: SparkContext = ... val documents: RDD[Seq[String]] = sc.textFile("...").map(_.split(" ").toSeq) val hashingTF = new HashingTF() -val tf: RDD[Vector] = hasingTF.transform(documents) +val tf: RDD[Vector] = hashingTF.transform(documents) {% endhighlight %} While applying `HashingTF` only needs a single pass to the data, applying `IDF` needs two passes: |