[Rd] e1071 ver 1.5-27 and older - SVM bug report

From: Paweł Matykiewicz <pawel.matykiewicz_at_gmail.com>
Date: Fri, 05 Aug 2011 17:33:56 -0400

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat 06 Aug 2011 - 08:06:05 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 06 Aug 2011 - 14:10:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive