Username Remember Me?
Password   forgot password?
   
   
sdtree error
Posted: 05 March 2010 03:41 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

Hi,

I use PRSD Studio 2.0.5 and I have the following error when I use the sdtree classifier on the adult dataset from UCI repository (in attachment): (Note: the problem seems to happen every time my dataset has more than 19 rows)

>> sdtree(data)
.??? 
Undefined function or method 'getcodes' for input arguments of type 'double'.

Error in ==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\@sdlab\subset.p>subset at 23


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\@sddata\private\subset_ind.p>subset_ind at 17


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\@sddata\subsref.p>subsref at 35


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\sdtree.p>tree_getcrit at 288


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\sdtree.p>tree_featthr at 281


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\sdtree.p>tree_processallfeat at 250


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\sdtree.p>tree_train at 140


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\sdtree.p>sdtree at 49

[ Edited: 05 March 2010 03:53 PM by Mathieu]
File Attachments
data.zip  (File Size: 288KB - Downloads: 99)
Profile
 
 
Posted: 06 March 2010 09:01 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  236
Joined  2008-04-26

Hi Mathieu,

thanks for this report! The adult data set contains numerically-coded categorical variables. sdtree was not reducing sorted data values into a unique set of values and thus was crashing on empty data sets.

The problem is now fixed. I’m attaching the updated sdtree routine (p-code for Matlab 7.5 or higher). You may just copy this file into prsd_toolbox directory.

With Kind Regards,

Pavel

File Attachments
sdtree.p  (File Size: 2KB - Downloads: 96)
Profile
 
 
Posted: 08 March 2010 02:54 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

Thanks, it worked great!

Profile