You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2014/09/22 18:10:45 UTC
git commit: [MLLib] Fix example code variable name misspelling in
MLLib Feature Extraction guide
Repository: spark
Updated Branches:
refs/heads/master fd0b32c52 -> fec921552
[MLLib] Fix example code variable name misspelling in MLLib Feature Extraction guide
Author: RJ Nowling <rn...@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
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fec92155
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fec92155
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fec92155
Branch: refs/heads/master
Commit: fec921552ffccc36937214406b3e4a050eb0d8e0
Parents: fd0b32c
Author: RJ Nowling <rn...@gmail.com>
Authored: Mon Sep 22 09:10:41 2014 -0700
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Mon Sep 22 09:10:41 2014 -0700
----------------------------------------------------------------------
docs/mllib-feature-extraction.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/fec92155/docs/mllib-feature-extraction.md
----------------------------------------------------------------------
diff --git a/docs/mllib-feature-extraction.md b/docs/mllib-feature-extraction.md
index 44f0f76..41a27f6 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:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org