Skip to content

Commit

Permalink
fit limit for confusion matrix in model eval
Browse files Browse the repository at this point in the history
  • Loading branch information
imanjra committed Jan 9, 2025
1 parent c5d3bf5 commit e370d30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ function getMatrix(matrices, config, maskTargets, compareMaskTargets?) {
return compareMaskTargets?.[c] || maskTargets?.[c] || c;
});
const noneIndex = originalClasses.indexOf(NONE_CLASS);
if (parsedLimit < originalClasses.length) {
if (parsedLimit < originalClasses.length && noneIndex > -1) {
labels.push(
compareMaskTargets?.[NONE_CLASS] ||
maskTargets?.[NONE_CLASS] ||
Expand Down

0 comments on commit e370d30

Please sign in to comment.