Repository: spark
Updated Branches:
  refs/heads/master eef779b8d -> 9306b8c6c


[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


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

Branch: refs/heads/master
Commit: 9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf
Parents: eef779b
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:45 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/9306b8c6/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