From pawel.matykiewicz at gmail.com  Fri Aug  5 23:33:56 2011
From: pawel.matykiewicz at gmail.com (=?ISO-8859-2?Q?Pawe=B3_Matykiewicz?=)
Date: Fri, 5 Aug 2011 17:33:56 -0400
Subject: [Rd] e1071 ver 1.5-27 and older - SVM bug report
In-Reply-To: <CAEdd+FYFJ-Ua+ZOhs_dBoG=qC2GBj_uynmLVkRKafN1FB90hGw@mail.gmail.com>
References: <CAEdd+FYFJ-Ua+ZOhs_dBoG=qC2GBj_uynmLVkRKafN1FB90hGw@mail.gmail.com>
Message-ID: <CAEdd+Fbr8UpHUGrNmW+My67ro8hyYERJoVzCz-aEwTH42Cy5=A@mail.gmail.com>

Dear All:


I found a problem with the SVM internal cross-validation (CV) accuracy
estimation in the e1071 package.

File: Rsvm.c
Line: 120

Today, it is:

int j = rand()%(prob->l-i);

Should be:

int j = i + rand()%(prob->l-i);

The erroneous code doesn't shuffle objects. Instead, it "randomly"
moves objects from beginning to the end.


In hope for a prompt response from the e1071 developer team,
Thank you,
Regards,
--
Pawel Matykiewicz
http://www.neuron.m4u.pl
http://www.linkedin.com/in/pawelmatykiewicz



[Rd] e1071 ver 1.5-27 and older - SVM bug report
=?ISO-8859-2?Q?Pawe=B3_Matykiewicz?=