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

Sean Owen updated SPARK-7617:
-----------------------------
    Assignee: YongGang Cao

> Word2VecModel fVector not normalized
> ------------------------------------
>
>                 Key: SPARK-7617
>                 URL: https://issues.apache.org/jira/browse/SPARK-7617
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>    Affects Versions: 1.3.1
>            Reporter: Eric Li
>            Assignee: YongGang Cao
>            Priority: Trivial
>             Fix For: 2.0.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> fVector is not divided by norm in findSynonyms. This will not affect the 
> order of synonyms, since it is a constant. However, the calculated cosine 
> distances will not be comparable across different words. 
> For example, 
> findSynonyms("sf", 1) return [("oakland", 0.2)]
> findSynonyms("dc", 1) return [("arlington", 0.3)]
> We cannot say compare the distances 0.2 with 0.3, since distances are not 
> normalized. 



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

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

Reply via email to