Skip to contents

Binary cross-entropy on the match scores.

Usage

morie_kamath_ch9_itm_loss(theta, v, t, y)

Arguments

theta

Score function or scores.

v, t

Images and texts.

y

0/1 match labels.

Value

List with estimate, per_pair, scores.

Examples

morie_kamath_ch9_itm_loss(c(0.9, 0.2), NULL, NULL, c(1, 0))
#> $estimate
#> [1] 0.164252
#> 
#> $per_pair
#> [1] 0.1053605 0.2231436
#> 
#> $scores
#> [1] 0.9 0.2
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "image-text matching binary loss (Kamath Eq 9.13)"
#>