octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47871] optimized kmeans.m for speed and modif


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47871] optimized kmeans.m for speed and modified convergence criterion
Date: Sat, 14 May 2016 01:11:39 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #1, bug #47871 (project octave):

Thanks, cuantiar.

Note that kmeans produces a decreasing sequence of costs (ignoring numerical
errors).  Have you observed cases where  err  was a large negative value?  I
think that the  abs()  is just an unnecessary function call.

The patch at bug #43959 already avoids the double call to obj_cost.

On a quick reading, I think it also loops over centroids instead of over data
sets.


This is the second patch within a few weeks that tries to improve on kmeans.m,
with changes that seem to be already in my patch from about a year ago.  Could
the package maintainer please apply my patch (or point out remaining flaws),
to save all of this duplicated effort?  Thanks!

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47871>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]