Username Remember Me?
Password   forgot password?
   
   
sdconfmat issue
Posted: 12 May 2016 07:31 PM   [ Ignore ]  
Master
RankRankRank
Total Posts:  55
Joined  2010-05-27

dear developer,

I am using sdconfmat and encountered the following error: any suggestion??

sdconfmat(tsb.lab,tsb*ps_svc*r_svc1)
Undefined function ‘mtimes’ for input arguments of type ‘sdlab’.

look forward to hearing from you as soon as possible.

thank you!

Profile
 
 
Posted: 13 May 2016 12:50 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear Liwei,

In the code above, the ps_svc is a classifier trained by sdsvc command and r_svc1 is an ROC object estimated using the ps_svc model.

The problem is that already returns decisions. Therefore, when executing the expression:

tsb*ps_svc*r_svc1

first, tsb*ps_svc returns decisions in an sdlab object. This is then passed to r_svc1 (an ROC object). ROC object cannot be applied to sdlab object, only to soft outputs in an sddata object.

What is needed to avoid the error, is to enclose the classifier and ROC in parentheses:

tsb*(ps_svc*r_svc1)

This will first execute ps_svc*r_svc1 which adds operating points from r_svc1 ROC to the classifier and returns ps_svc classifier with this new operating point information. In the second step, this classifier is applied to the test set tsb which returns decisions at the current operating point set in r_svc1.

I’d suggest to put this line explicitly after setting the desired op.point:

ps_svc=ps_svc*r_svc1

With Kind Regards,

Pavel

Profile