spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-7663) [MLLIB] feature.Word2Vec throws empty iterator error when the vocabulary size is zero
Date Wed, 20 May 2015 09:44:59 GMT

     [ https://issues.apache.org/jira/browse/SPARK-7663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Owen resolved SPARK-7663.
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

Issue resolved by pull request 6228
[https://github.com/apache/spark/pull/6228]

> [MLLIB] feature.Word2Vec throws empty iterator error when the vocabulary size is zero
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-7663
>                 URL: https://issues.apache.org/jira/browse/SPARK-7663
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, MLlib
>    Affects Versions: 1.4.0
>            Reporter: Xusen Yin
>            Priority: Minor
>             Fix For: 1.5.0
>
>
> mllib.feature.Word2Vec at line 442: https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala#L442
uses `.head` to get the vector size. But it would throw an empty iterator error if the `minCount`
is large enough to remove all words in the dataset.
> But due to this is not a common scenario, so maybe we can ignore it. If so, we can close
the issue directly. If not, I can add some code to print more elegant error hits.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message