Repository: spark
Updated Branches:
  refs/heads/branch-1.1 518258f1b -> e0bc333b6


[MLlib] Remove transform(dataset: RDD[String]) from Word2Vec public API

mengxr
Remove  transform(dataset: RDD[String]) from public API.

Author: Liquan Pei <[email protected]>

Closes #2010 from Ishiihara/Word2Vec-api and squashes the following commits:

17b1031 [Liquan Pei] remove transform(dataset: RDD[String]) from public API

(cherry picked from commit 9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf)
Signed-off-by: Xiangrui Meng <[email protected]>


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

Branch: refs/heads/branch-1.1
Commit: e0bc333b6ad36feac5397600fe6948dcb37a8e44
Parents: 518258f
Author: Liquan Pei <[email protected]>
Authored: Mon Aug 18 01:15:45 2014 -0700
Committer: Xiangrui Meng <[email protected]>
Committed: Mon Aug 18 01:15:57 2014 -0700

----------------------------------------------------------------------
 .../scala/org/apache/spark/mllib/feature/Word2Vec.scala     | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e0bc333b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala 
b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
index d2ae62b..1dcaa2c 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
@@ -435,15 +435,6 @@ class Word2VecModel private[mllib] (
   }
   
   /**
-   * Transforms an RDD to its vector representation
-   * @param dataset a an RDD of words 
-   * @return RDD of vector representation 
-   */
-  def transform(dataset: RDD[String]): RDD[Vector] = {
-    dataset.map(word => transform(word))
-  }
-  
-  /**
    * Find synonyms of a word
    * @param word a word
    * @param num number of synonyms to find  


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to