spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: [MLLib] Fix example code variable name misspelling in MLLib Feature Extraction guide
Date Mon, 22 Sep 2014 16:10:56 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.1 f5bf7dedb -> 32bb97fc4


[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

(cherry picked from commit fec921552ffccc36937214406b3e4a050eb0d8e0)
Signed-off-by: Xiangrui Meng <meng@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/32bb97fc
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/32bb97fc
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/32bb97fc

Branch: refs/heads/branch-1.1
Commit: 32bb97fc439be2dd693997bc4a9bd8f855e71465
Parents: f5bf7de
Author: RJ Nowling <rnowling@gmail.com>
Authored: Mon Sep 22 09:10:41 2014 -0700
Committer: Xiangrui Meng <meng@databricks.com>
Committed: Mon Sep 22 09:10:52 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/32bb97fc/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


Mime
View raw message