aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorLiquan Pei <liquanpei@gmail.com>2014-08-18 01:15:45 -0700
committerXiangrui Meng <meng@databricks.com>2014-08-18 01:15:45 -0700
commit9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf (patch)
tree8eafd0799f4e2a39d249545eaea52602d9c77a88 /mllib
parenteef779b8d631de971d440051cae21040f4de558f (diff)
downloadspark-9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf.tar.gz
spark-9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf.tar.bz2
spark-9306b8c6c8c412b9d0d5cffb6bd7a87784f0f6bf.zip
[MLlib] Remove transform(dataset: RDD[String]) from Word2Vec public API
mengxr Remove transform(dataset: RDD[String]) from public API. Author: Liquan Pei <liquanpei@gmail.com> Closes #2010 from Ishiihara/Word2Vec-api and squashes the following commits: 17b1031 [Liquan Pei] remove transform(dataset: RDD[String]) from public API
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala9
1 files changed, 0 insertions, 9 deletions
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 d2ae62b482..1dcaa2cd2e 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