[ 
https://issues.apache.org/jira/browse/MATH-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17058409#comment-17058409
 ] 

Chen Tao edited comment on MATH-1524 at 3/13/20, 4:14 AM:
----------------------------------------------------------

{quote}How about{quote}
Sorry, may be my expression below was not clear.

My purpose(of prediction) is to find a proper cluster for a new point, and then 
add the point to cluster, or further find out the top N nearest points in the 
proper cluster.

Return a int[] of indexes may better, for both can used to find the proper 
cluster, and find out the top N nearest points in a cluster.


was (Author: chentao106):
{quote}How about{quote}
Sorry, my be my expression below was not clear.

My purpose(of prediction) is to find a proper cluster for a new point, and then 
add the point to cluster, or further find out the top N nearest points in the 
proper cluster.

Return a int[] of indexes may better, for both can used to find the proper 
cluster, and find out the top N nearest points in a cluster.

> "chooseInitialCenters" should move out from KMeansPlusPlusClusterer
> -------------------------------------------------------------------
>
>                 Key: MATH-1524
>                 URL: https://issues.apache.org/jira/browse/MATH-1524
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Chen Tao
>            Priority: Major
>         Attachments: centroid.png, getCenter.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> There are two reason for "chooseInitialCenters" should be move out from 
> "KMeansPlusPlusClusterer":
> # k-means++ clusterer is a special case of k-means clusterer, that k-means++ 
> initialize the cluster centers with k-means++ algorithm. Another case is 
> initialize the cluster centers with random points.
> # The mini batch k-means will reuse "chooseInitialCenters". 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to