Skip to contents

F_X = ME_X(I_X): runs the caller's encoder and checks its output.

Usage

morie_kamath_ch9_modality_encoder(I_X, ME_X)

Arguments

I_X

Raw modality input.

ME_X

Encoder function.

Value

List with estimate (Frobenius norm), features, shape.

Examples

morie_kamath_ch9_modality_encoder("img", function(i) matrix(c(3,
    4), 1))
#> $estimate
#> [1] 5
#> 
#> $features
#> [1] 3 4
#> 
#> $shape
#> [1] 1 2
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "modality encoder F_X = ME_X(I_X) (Kamath Eq 9.1)"
#>