You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:14:47 UTC
[jira] [Resolved] (SPARK-22195) Add cosine similarity to
org.apache.spark.ml.linalg.Vectors
[ https://issues.apache.org/jira/browse/SPARK-22195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-22195.
----------------------------------
Resolution: Incomplete
> Add cosine similarity to org.apache.spark.ml.linalg.Vectors
> -----------------------------------------------------------
>
> Key: SPARK-22195
> URL: https://issues.apache.org/jira/browse/SPARK-22195
> Project: Spark
> Issue Type: New Feature
> Components: ML
> Affects Versions: 2.2.0
> Reporter: yuhao yang
> Priority: Minor
> Labels: bulk-closed
>
> https://en.wikipedia.org/wiki/Cosine_similarity:
> As the most important measure of similarity, I found it quite useful in some image and NLP applications according to personal experience.
> Suggest to add function for cosine similarity in org.apache.spark.ml.linalg.Vectors.
> Interface:
> def cosineSimilarity(v1: Vector, v2: Vector): Double = ...
> def cosineSimilarity(v1: Vector, v2: Vector, norm1: Double, norm2: Double): Double = ...
> Appreciate suggestions and need green light from committers.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org