
Chain-rule sequence probability (Kamath Eq 6.26)
Source:R/kamath_llm2_native.R
morie_kamath_ch6_lstm_chain_rule.RdChain-rule sequence probability (Kamath Eq 6.26)
Examples
morie_kamath_ch6_lstm_chain_rule(c(0.5, 0.25, 0.5))
#> $estimate
#> [1] 0.0625
#>
#> $log_prob
#> [1] -2.772589
#>
#> $per_step
#> [1] 0.50 0.25 0.50
#>
#> $n
#> [1] 3
#>
#> $method
#> [1] "chain rule sequence probability (Kamath Eq 6.26)"
#>