Closed
Description
I would like to add a simple Hausdorff Loss as proposed in (DOI: 10.1109/TMI.2019.2930068)
It approximates the Hausdorff distance to allow for direct minimization of the HD during training
function hd_loss(ŷ, y, ŷ_dtm, y_dtm)
M = (ŷ .- y) .^ 2 .* (ŷ_dtm .^ 2 .+ y_dtm .^ 2)
loss = mean(M)
end
Should I open a PR for this?