
Multimodal MAE squared reconstruction loss (Kamath Ch 9)
Source:R/kamath_llm2_native.R
morie_kamath_multimodal_mae.Rdsum_m ||x_masked - Decoder_m(visible)||^2 across the modalities.
Examples
morie_kamath_multimodal_mae(list(v = 0), list(v = c(1, 2)), list(v = c(TRUE,
FALSE, TRUE)), decoders = list(v = function(x, m) c(0.5,
1)))
#> $estimate
#> [1] 1.25
#>
#> $loss
#> [1] 1.25
#>
#> $per_modality
#> $per_modality$v
#> [1] 1.25
#>
#>
#> $modalities
#> [1] "v"
#>
#> $n_masked
#> [1] 2
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "Multimodal MAE squared reconstruction loss"
#>