[Scipy-tickets] [SciPy] #256: kmean returning cluster membership for each observation

SciPy scipy-tickets at scipy.net
Mon Aug 28 07:39:24 CDT 2006


#256: kmean returning cluster membership for each observation
------------------------------+---------------------------------------------
 Reporter:  david cournapeau  |       Owner:  somebody
     Type:  enhancement       |      Status:  new     
 Priority:  normal            |   Milestone:          
Component:  scipy.cluster     |     Version:          
 Severity:  trivial           |    Keywords:          
------------------------------+---------------------------------------------
 I was wondering why kmeans in scipy.cluster.vq does not return the
 cluster's membership of each observation. This can be quite useful, and is
 computed by the algorithm anyway.

 So instead of:

 return code_book, avg_dist[-1]

 why not using:

 return code_book, obs_code, avg_dist[-1]

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/256>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list