Username Remember Me?
Password   forgot password?
   
   
How can I test just one instance? 
Posted: 22 February 2010 06:29 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  16
Joined  2009-09-03

Hello,

my training set contains two classes.
I want to test classifier with test set, that contains just one instance. As a result I would like to get evaluated class lable (and posterior probability) of the test instance.

But when I use testc(D) I get an error message:

??? Error using ==> testc at 181
Some classes have no test objects

Could you please help me? How can I test just one instance?

Thanks,
Valeria

Profile
 
 
Posted: 23 February 2010 01:18 PM   [ Ignore ]   [ # 1 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

You can use labeld for finding labels and +(d*w*classc) for finding confidences.

Bob Duin

Profile
 
 
Posted: 23 February 2010 02:27 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  16
Joined  2009-09-03

Thanks Bob,
it is exactly what I wanted!

But now I have an other question. Why if I train QDC, I get a complex numbers as a confidences?

Profile
 
 
Posted: 23 February 2010 03:32 PM   [ Ignore ]   [ # 3 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

You should not get it. It is the result of inverting (close to) singular matrices.
Some regularisation may hel (e.g. qdc([],1e-6)).

What is the date that is listed in your Contents.m file on the second line?

Bob

Profile
 
 
Posted: 23 February 2010 04:01 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  16
Joined  2009-09-03

Hi Bob,
the date that is listed in my Contents.m file on the second line:

Version 4.1.3 10-Jun-2008

If I train TREEC or KNNC with the same data set I get normal numbers for the confidences. It happens only with QDC..

Profile
 
 
Posted: 23 February 2010 04:25 PM   [ Ignore ]   [ # 5 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

That is an old version, please download a new one from prtools.org

Bob

Profile
 
 
Posted: 23 February 2010 05:06 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  16
Joined  2009-09-03

I downloaded a new version. Now I’ve got version 4.1.5 (30-Jul-2009).

But I still get either complex numbers or NaN values for confidence when I train QDC.
Is there some other ideas, why it happens?

Thanks,
Valeria

Profile
 
 
Posted: 24 February 2010 10:29 AM   [ Ignore ]   [ # 7 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

There is a newer version, please try it.

Bob Duin

Profile
 
 
Posted: 24 February 2010 10:51 AM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  16
Joined  2009-09-03

Hello Bob,

now I’ve got the version 4.1.6 (15-Jan-2010).
But I stil get complex numbers with QDC and the warning:

PR_Warningnormal_mapSingular case, pseudo-inverse of the covariance matrix is used.

Valeria

Profile
 
 
Posted: 24 February 2010 12:57 PM   [ Ignore ]   [ # 9 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

Can you send me the most simple version of the dataset and the qdc command you are using?

Please send it directly to me:

Bob Duin

Profile