Skip to content

Commit fec9215

Browse files
rnowlingmengxr
authored andcommitted
[MLLib] Fix example code variable name misspelling in MLLib Feature Extraction guide
Author: RJ Nowling <[email protected]> Closes apache#2459 from rnowling/tfidf-fix and squashes the following commits: b370a91 [RJ Nowling] Fix variable name misspelling in MLLib Feature Extraction guide
1 parent fd0b32c commit fec9215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mllib-feature-extraction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ val sc: SparkContext = ...
6868
val documents: RDD[Seq[String]] = sc.textFile("...").map(_.split(" ").toSeq)
6969

7070
val hashingTF = new HashingTF()
71-
val tf: RDD[Vector] = hasingTF.transform(documents)
71+
val tf: RDD[Vector] = hashingTF.transform(documents)
7272
{% endhighlight %}
7373

7474
While applying `HashingTF` only needs a single pass to the data, applying `IDF` needs two passes:

0 commit comments

Comments
 (0)