
Monte Carlo dropout uncertainty (Geron Ch 11, morie.fn hmmcd)
Source:R/geron_w4b_native.R
morie_geron_mc_dropout.RdMasks via the shared LCG stream, not numpy PCG64.
Examples
f <- function(z) sum(z)
morie_geron_mc_dropout(f, c(1, 2, 3), K = 10, p = 0)
#> $mean
#> [1] 6
#>
#> $var
#> [1] 0
#>
#> $std
#> [1] 0
#>
#> $sem
#> [1] 0
#>
#> $samples
#> [,1]
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#> out 6
#>
#> $predictive_entropy
#> NULL
#>
#> $K
#> [1] 10
#>
#> $p
#> [1] 0
#>
#> $estimate
#> [1] 6
#>
#> $n
#> [1] 3
#>
#> $method
#> [1] "Monte Carlo dropout uncertainty"
#>