deads / scipy-cluster

Automatically exported from code.google.com/p/scipy-cluster
Other
0 stars 0 forks source link

flat cluster numbering convention #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The fcluster function return clusters numbered 1..n. Python counts from 0
and so does scipy.vq.kmeans2.

If scipy-cluster will be included in scipy and vq is there to stay it would
be nice to unify the numbering.

Marcin

Original issue reported on code.google.com by marcin.c...@gmail.com on 23 Mar 2008 at 11:52

GoogleCodeExporter commented 9 years ago
I wouldn't exactly call it a bug since the cluster numbers are nominal in 
meaning,
not ordinal. I understand one might use them as an index to some other data
structure. I'm a bit wary of changing the output though as I don't want others' 
code
to break. These needs more consideration.

Thanks.

Damian

Original comment by damian.e...@gmail.com on 24 Mar 2008 at 7:45