QMRITools`
QMRITools`

FocalLossLayer

FocalLossLayer[]

represents a net layer that computes the Focal loss by comparing input class probability vectors with the target class vector.

FocalLossLayer[g]

does the same but uses g as the tunable focusing parameter gamma which needs to be larger than one.

FocalLossLayer[g,a]

does the same but uses as the balancing factor alpha.

Examples