Skip to contents

Chain-rule sequence probability (Kamath Eq 6.26)

Usage

morie_kamath_ch6_lstm_chain_rule(w_1_w_M)

Arguments

w_1_w_M

Per-step conditional probabilities in (0, 1].

Value

List with estimate (the product), log_prob, per_step.

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)"
#>