[Top][All Lists]

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

[Octave-bug-tracker] [bug #43959] kmeans incompatibility with Matlab

From: anonymous
Subject: [Octave-bug-tracker] [bug #43959] kmeans incompatibility with Matlab
Date: Fri, 09 Jan 2015 06:00:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0


                 Summary: kmeans incompatibility with Matlab
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 09 Jan 2015 06:00:10 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Lachlan
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux



The kmeans function is not compatible with Matlab's.  The attached three
patches address three issues.

1. Matlab's kmeans ignores samples with NaN values.  Octave's did not.

2. Matlab's kmeans returns a third value that is a vector of the sums of
distances between vectors and their classes' examplars.  Octave's returned a
single value that is the sum of all of these sum.

3. Matlab's kmeans accepts an option "replicates", which returns the best of
multiple runs.  Octave's did not.

The three patches address these problems. The patch  kmeans_sumd.m  should be
applied before  kmeans_replicates.patch.

There are several other incompatibilities that will be easy to fix.  I'm happy
to fix the easy ones if/when these patches are accepted.


File Attachments:

Date: Fri 09 Jan 2015 06:00:10 AM UTC  Name: kmeansNaN.patch  Size: 704B   By:

Date: Fri 09 Jan 2015 06:00:10 AM UTC  Name: kmeans_sumd.patch  Size: 808B  
By: None

Date: Fri 09 Jan 2015 06:00:10 AM UTC  Name: kmeans_replicates.patch  Size:
5kB   By: None



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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