Username Remember Me?
Password   forgot password?
   
   
Scatterd problem handling labels of empty classes
Posted: 05 June 2009 02:31 PM   [ Ignore ]  
Jr. Member
RankRank
Total Posts:  41
Joined  2008-07-11

Hi again, I got problems with scatterd labels when using datasets with empty classes. The problem was corrected with a few lines in the scatterd script. Just in case you are interested in handling this situations I added this lines

(line 170)
if (isa(a,’dataset’)) & (~isempty(getlablist(a)))
[m,k,c] = getsize(a);

% start of addition

cs_a = classsizes(a);
classes_present = cs_a > 0;

% end of addition

and use classes_present in line 283

if (plotlegend),

% start of modification
[ht, hl] = legend(lhandle(:),lablist(classes_present,:));
% end of modification

hl = hl(:)’;

Regards,
Mariano.

Profile
 
 
   
 
 
‹‹ confusion matrix error      sdtree error ››