From meyerd at technikum-wien.at  Sat Aug  6 12:38:11 2011
From: meyerd at technikum-wien.at (David Meyer)
Date: Sat, 06 Aug 2011 12:38:11 +0200
Subject: [Rd]  e1071 ver 1.5-27 and older - SVM bug report
Message-ID: <4E3D1993.7060505@technikum-wien.at>

Dear Pawel:

yes, this is a bug. Fixed in the next release.

Thanks

David

-----------------------------------------

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.



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