
ProPILE PII likelihood (Kamath Eq 6.31)
Source:R/kamath_llm2_native.R
morie_kamath_ch6_pii_likelihood.RdProduct of the target PII's per-token probabilities.
Examples
morie_kamath_ch6_pii_likelihood(c(0.5, 0.25), c("a"), c("q"),
1, 2)
#> $estimate
#> [1] 0.125
#>
#> $log_likelihood
#> [1] -2.079442
#>
#> $per_token
#> [1] 0.50 0.25
#>
#> $context_lengths
#> [1] 1 2
#>
#> $n_other_pii
#> [1] 1
#>
#> $n
#> [1] 2
#>
#> $method
#> [1] "ProPILE PII likelihood (Kamath Eq 6.31)"
#>