tversky_loss

function defined in module Flux.Losses


			tversky_loss(ŷ, y; beta = 0.7)

Return the Tversky loss . Used with imbalanced data to give more weight to false negatives. Larger β == beta weigh recall more than precision (by placing more emphasis on false negatives). Calculated as:


			1 - sum(|y .* ŷ| + 1) / (sum(y .* ŷ + (1 - β)*(1 .- y) .* ŷ + β*y .* (1 .- ŷ)) + 1)
Methods

There is 1 method for Flux.Losses.tversky_loss: