Username Remember Me?
Password   forgot password?
   
   
sdsvc
Posted: 21 July 2010 10:20 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  9
Joined  2010-06-17

Hi,

I have a few problems with svms.

This works fine:
load(’fruit’)
>> out = sdsvc(a);
one-against-all: [’apple’ ....................sigma=0.96624 C=0.336 err=0.063 SVs=68] [’banana’ ....................sigma=0.96137 C=2.98 err=0.113 SVs=56] [’stone’ ....................sigma=3.22551 C=12.7 err=0.010 SVs=30]
However:
>> out = a*sdsvc;
Warning: In the directory “C:\Documents and
Settings\MATLAB\prsd_toolbox”, svmtrain.mexw32 now
shadows svmtrain.dll.
Please see the MATLAB 7.1 Release Notes.

PRSD Studio Commercial 2.2.2 (22-Jun-2010), Copyright (C) 2007-2010, PR Sys Design, All rights reserved

Error in ==> C:\Documents and Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc at 30

??? Output argument “p” (and maybe others) not
assigned during call to “C:\Documents and
Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc”.

Is this due to svmtrain.mexw32 shadowing svmtrain.dll?
And when I try it with my own dataset I also get an error (only with sdsvc and not with other sdclassifiers). Did I forget to set a certain property for sdsvc?
>> ds
998 by 52 sddata, 2 classes: ‘b’(937) ‘n’(61)

>> struct(ds)
ans =
format: ‘sddata1’
data: [1x1 struct]

>> sdsvc(ds)
Warning: In the directory “C:\Documents and
Settings\MATLAB\prsd_toolbox”, svmtrain.mexw32 now
shadows svmtrain.dll.
Please see the MATLAB 7.1 Release Notes.
??? Error using ==> vertcat at 67
Uknown property format
Error in ==> C:\Documents and
Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc at 109

p = sdsvc;
Error in ==> C:\Documents and Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc at 30

??? Output argument “p” (and maybe others) not
assigned during call to “C:\Documents and
Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc”.

Profile
 
 
Posted: 21 July 2010 10:46 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  240
Joined  2008-04-26

Hi Carlas,

both calls, p=sdsvc(data) or p=data*sdsvc are handled identically. I think the problem might be related to Matlab release and mex build.

Which version of Matlab are you using? (use ver command or prsd_feedback).  The error message is related to Matlab 7.1 but the binary build requires Matlab 7.5 or higher.

Kind Regards,

Pavel

Profile
 
 
Posted: 21 July 2010 11:02 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  9
Joined  2010-06-17

Matlab 7.7.0.471 (R2008b) (platform PCWIN)
PRTools: 4.1.6 15-Jan-2010
PRSD Toolbox: 2.2.2 (22-Jun-2010) (COM)
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 3)
Java VM Version: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode

Profile
 
 
Posted: 21 July 2010 11:57 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  240
Joined  2008-04-26

thanks - no problem with Mex or p-code format. I think it’s related to the bug in sdsvc which was reported in this thread:
http://perclass.com/index.php/forums/viewthread/207/

You can download the patched file there. It will appear as a part of the next release.

Does it help?

Kind Regards,

Pavel

Profile
 
 
Posted: 23 July 2010 09:17 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  9
Joined  2010-06-17

Thanks that’s it for the fruit dataset. However i still have an error for the custom dataset:

>> sdsvc(a);
one-against-all: [’apple’ ....................sigma=0.99532 C=113 err=0.050 SVs=21] [’banana’ ....................sigma=0.95778 C=0.336 err=0.063 SVs=95] [’stone’ ....................sigma=3.40639 C=26.4 err=0.030 SVs=28]
>> sdsvc(b);
??? Error using ==> vertcat at 67
Uknown property format

Error in ==> C:\Documents and Settings\MATLAB\prsd_toolbox\sdsvc.p>sdsvc at 109

>> struct(a)

ans =

format: ‘sddata1’
data: [1x1 struct]

>> struct(b)

ans =

format: ‘sddata1’
data: [1x1 struct]

[ Edited: 28 July 2010 10:32 AM by Carlas]
Profile