You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/01/19 08:26:00 UTC

[jira] [Assigned] (SPARK-37959) Fix the UT of checking norm in KMeans & BiKMeans

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

Apache Spark reassigned SPARK-37959:
------------------------------------

    Assignee: Apache Spark

> Fix the UT of checking norm in KMeans & BiKMeans
> ------------------------------------------------
>
>                 Key: SPARK-37959
>                 URL: https://issues.apache.org/jira/browse/SPARK-37959
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 3.3.0
>            Reporter: zhengruifeng
>            Assignee: Apache Spark
>            Priority: Minor
>
> In KMeansSuite and BisectingKMeansSuite, there are some unused lines:
>  
> {code:java}
> model1.clusterCenters.forall(Vectors.norm(_, 2) == 1.0 {code}
>  
> For cosine distance, the norm of centering vector should be 1, so the norm checking is meaningful;
> For euclidean distance, the norm checking is meaningless;
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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