I am getting NaN
values when I am evaluating a semantic segmentation network. How can I replace NaN
with 0
?
metrics =
semanticSegmentationMetrics with properties:
ConfusionMatrix: [9×9 table]
NormalizedConfusionMatrix: [9×9 table]
DataSetMetrics: [1×5 table]
ClassMetrics: [9×3 table]
ImageMetrics: [5×5 table]
metrics.ClassMetrics
ans =
9×3 table
Accuracy IoU MeanBFScore
________ _______ ___________
Fat 0 0 0
Intestine NaN 0 NaN