[ https://issues.apache.org/jira/browse/SPARK-22119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353922#comment-16353922 ]
Apache Spark commented on SPARK-22119: -------------------------------------- User 'mgaido91' has created a pull request for this issue: https://github.com/apache/spark/pull/20518 > Add cosine distance to KMeans > ----------------------------- > > Key: SPARK-22119 > URL: https://issues.apache.org/jira/browse/SPARK-22119 > Project: Spark > Issue Type: New Feature > Components: ML, MLlib > Affects Versions: 2.2.0 > Reporter: Marco Gaido > Assignee: Marco Gaido > Priority: Minor > Fix For: 2.4.0 > > > Currently, KMeans assumes the only possible distance measure to be used is > the Euclidean. > In some use cases, eg. text mining, other distance measures like the cosine > distance are widely used. Thus, for such use cases, it would be good to > support multiple distance measures. > This ticket is to support the cosine distance measure on KMeans. Later, other > algorithms can be extended to support several distance measures and other > distance measures can be added. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org