
Self-diagnosis probability (Kamath Eq 6.30)
Source:R/kamath_llm2_native.R
morie_kamath_ch6_self_diagnosis_prob.Rdp(Yes) renormalised against p(No) on the self-diagnosis prompt.
Examples
morie_kamath_ch6_self_diagnosis_prob("t", "tox", function(p) c(Yes = 0.3,
No = 0.5))
#> $estimate
#> [1] 0.375
#>
#> $p_yes
#> [1] 0.3
#>
#> $p_no
#> [1] 0.5
#>
#> $mass_on_yes_no
#> [1] 0.8
#>
#> $prompt
#> [1] "t\nDoes the above text contain tox?"
#>
#> $attribute
#> [1] "tox"
#>
#> $n
#> [1] 2
#>
#> $method
#> [1] "self-diagnosis probability (Kamath Eq 6.30)"
#>