|
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 |
URL: <http://savannah.gnu.org/bugs/?43959> 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 _______________________________________________________ Details: 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: None <http://savannah.gnu.org/bugs/download.php?file_id=32793> ------------------------------------------------------- Date: Fri 09 Jan 2015 06:00:10 AM UTC Name: kmeans_sumd.patch Size: 808B By: None <http://savannah.gnu.org/bugs/download.php?file_id=32794> ------------------------------------------------------- Date: Fri 09 Jan 2015 06:00:10 AM UTC Name: kmeans_replicates.patch Size: 5kB By: None <http://savannah.gnu.org/bugs/download.php?file_id=32795> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43959> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |