GRU cell forward step (Geron Ch 13, morie.fn hmgru)
Examples
W <- list(W_z = matrix(0, 2, 2), U_z = matrix(0, 2, 2), b_z = c(0,
0), W_r = matrix(0, 2, 2), U_r = matrix(0, 2, 2), b_r = c(0,
0), W_h = matrix(0, 2, 2), U_h = matrix(0, 2, 2), b_h = c(0,
0))
morie_geron_gru(c(0, 0), c(4, -2), W)
#> $h_t
#> [1] 2 -1
#>
#> $z_t
#> [1] 0.5 0.5
#>
#> $r_t
#> [1] 0.5 0.5
#>
#> $h_tilde
#> [1] 0 0
#>
#> $estimate
#> [1] 2.236068
#>
#> $n
#> [1] 2
#>
#> $method
#> [1] "GRU cell forward step"
#>
