Skip to contents

max log(PP_public / PP_lm) over the unique sequences.

Usage

morie_kamath_ch6_perplexity_leakage(S_uniq, PP_public, PP_lm)

Arguments

S_uniq

Sequences.

PP_public, PP_lm

Named vectors or functions.

Value

List with estimate, argmax, per_sequence, n_leaking.

Examples

morie_kamath_ch6_perplexity_leakage(c("s1", "s2"), c(s1 = 10,
    s2 = 5), c(s1 = 2, s2 = 4))
#> $estimate
#> [1] 1.609438
#> 
#> $argmax
#> [1] "s1"
#> 
#> $per_sequence
#> [1] 1.6094379 0.2231436
#> 
#> $n_leaking
#> [1] 2
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "worst-case perplexity leakage (Kamath Eq 6.33)"
#>