Username Remember Me?
Password   forgot password?
   
   
Undefined function or method ‘apply_untrained’
Posted: 03 August 2010 04:35 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

There seems to be a strange bug in the version 2.2.3, when I tried the following simple commands, I got an error:

>> p=sdknn;
>> 
dat*p
??? Undefined function or method 'apply_untrained' for input arguments     of type 'sdppl'.

Error in ==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\@sdppl\mtimes.p>mtimes at 72

The exact same code, with the same data, was working in version 2.1.0. Note that the same problem also happens with sdlinear, sdquadratic and probably other algorithms.

Thanks

Mathieu

Profile
 
 
Posted: 03 August 2010 04:49 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  236
Joined  2008-04-26

Dear Mathieu,

that’s a strange problem. I cannot repeat it with the 2.2.3 distribution. Please check if you really use 2.2.3 (type prsdversion). Secondly, could you check if the prsd_toolbox/@sdppl directory contains the apply_untrained.p file?
The problem could be related to extracting the distribution from the archive.

With Kind Regards,

Pavel

Profile
 
 
Posted: 03 August 2010 06:07 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

Dear Pavel,

Here is what prsdversion is returning:

>> prsdversion
PRSD Studio Commercial 2.2.3 (29-Jul-2010), Copyright (C) 2007-2010, PR Sys Design, All rights reserved

Also, I do have the file apply_untrained.p in the prsd_toolbox/@sdppl directory.

Mathieu

Profile
 
 
Posted: 03 August 2010 06:41 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

Here is some information that may help to narrow down the problem:

the following command is working:

>> p=sdknn(dat)

I followed the example in chapter 3: Getting started and the first error occurred with the following command:

>>dec=ts*pd
??? Undefined function or method 'setclflist' for input arguments of type 'sdlab'.

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


Error in 
==> C:\Program Files\MATLAB\R2009b\toolbox\prsd_toolbox\@sdppl\mtimes.p>mtimes at 78

Thanks

Mathieu

Profile
 
 
Posted: 03 August 2010 07:34 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  236
Joined  2008-04-26

Dear Mathieu,

also your latest example works fine with me in the 2.2.3 released distribution. The file setclflist.p is present inside prsd_toolbox/@sdlab directory.

I still suspect that in one way or another you use older distribution, because 2.1.0, you mentioned above, did not contain neither apply_untrained.p nor setclflist.p.

Could you, please double-check that you don’t have PRSD Studio 2.1.0 or other earlier version on your Matlab path and that prsd_mex, apply_untrained and setclflist are all taken from the 2.2.3 release directory?

>> which prsd_mex
/tmp/PRSD_Studio_2.2.3_29Jul10_M75/prsd_toolbox/prsd_mex.mexmaci

>> which @sdppl/apply_untrained
/tmp/PRSD_Studio_2.2.3_29Jul10_M75/prsd_toolbox/@sdppl/apply_untrained.p

>> which @sdlab/setclflist
/tmp/PRSD_Studio_2.2.3_29Jul10_M75/prsd_toolbox/@sdlab/setclflist.p

With Kind Regards,

Pavel

Profile
 
 
Posted: 03 August 2010 08:04 PM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  20
Joined  2010-02-18

Dear Pavel,

The command: which @sdppl/apply_untrained returned ‘@sdppl/apply_untrained’ not found. So, in matlab set path setting, I removed the prsd_toolbox path and reinserted it to force matlab to update and it solved my problems.

Thank you very much for your help.

Mathieu

Profile