
Membership inference by loss threshold (Kamath Ch 6)
Source:R/kamath_llm2_native.R
morie_kamath_membership_inference.RdPredict member iff loss < tau; with labels, TPR / FPR / advantage follow.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_kamath_membership_inference(V, V)
#> $predictions
#> [1] 0 0 0 0 0 0 0 0
#>
#> $n_predicted_members
#> [1] 0
#>
#> $member_rate
#> [1] 0
#>
#> $threshold
#> [1] 1 2 3 4 5 6 7 8
#>
#> $n
#> [1] 8
#>
#> $estimate
#> [1] 0
#>
#> $method
#> [1] "Membership inference by loss threshold"
#>