Algorithm-KMeans
view release on metacpan or search on metacpan
lib/Algorithm/KMeans.pm view on Meta::CPAN
I thank Slaven for pointing out that I needed to downshift the required version of Perl
for this module. Fortunately, I had access to an old machine still running Perl
5.10.1. The current version, 2.02, is based on my testing the module on that machine.
I added two C<which_cluster> methods in Version 2.0 as a result of an email from
Jerome White who expressed a need for such methods in order to determine the best
cluster for a new data record after you have successfully clustered your existing
data. Thanks Jerome for your feedback!
It was an email from Nadeem Bulsara that prompted me to create Version 1.40 of this
module. Working with Version 1.30, Nadeem noticed that occasionally the module would
produce variable clustering results on the same dataset. I believe that this
variability was caused (at least partly) by the purely random mode that was used in
Version 1.30 for the seeding of the cluster centers. Version 1.40 now includes a
C<smart> mode. With the new mode the clusterer uses a PCA (Principal Components
Analysis) of the data to make good guesses for the cluster centers. However,
depending on how the data is jumbled up, it is possible that the new mode will not
produce uniformly good results in all cases. So you can still use the old mode by
setting C<cluster_seeding> to C<random> in the constructor. Thanks Nadeem for your
feedback!
( run in 1.187 second using v1.01-cache-2.11-cpan-6aa56a78535 )