Skip to content

Commit

Permalink
bugfix for alternate aggregation method
Browse files Browse the repository at this point in the history
  • Loading branch information
jnkather committed Mar 27, 2021
1 parent 07db6e8 commit 605af9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion subroutines/predictions2performance.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
max(double(currScores(:,uc)));
elseif isfield(cnst,'aggregateMode') && strcmp(cnst.aggregateMode,'ignoreClass')
currLabelsClean = currLabels;
currLabelsClean(currLabelsClean==categorical(cnst.whichIgnoreClass)) = [];
currLabelsClean(currLabelsClean==categorical(cellstr(cnst.whichIgnoreClass))) = [];
patientPredictions.predictions.(char(uCats(uc)))(i) = ...
sum(currLabels==uCats(uc))/numel(currLabelsClean);
else % default majority vote
Expand Down

0 comments on commit 605af9a

Please sign in to comment.