I'm training a neural network at the moment on an image segmentation problem (that is, I have an images and masks, and I am trying to train the network to generate its own masks from other images.
I'd like the network to use Intersection over Union as its error
metric, rather than whatever it otherwise uses ("error" in the training progress box).
However, I can't find anything in the documentation about this error metric, how it's calculated, or how to change it.
An IOU function is available in a comment on this post, in case it's useful. Other details about a segmentation network (UNET) are also available there.
However, my question is more arbitrary - how does one change this error metric at all, for any NetTrain
invocation, rather than how do I change it to IOU.
Thanks.
LossFunction
(for example to SoftIOU), the error goes away. I wonder if the error comes from aNetPort
used by the defaultLossFunction
. $\endgroup$