
Logistic (sigmoid) activation (morie.fn grsig)
Source:R/geron_train_native.R
morie_geron_sigmoid_grsig.RdThe overflow-safe two-branch form; the shared kernel behind every logistic routine in this file.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_sigmoid_grsig(V)
#> $sigma
#> [1] 0.7310586 0.8807971 0.9525741 0.9820138 0.9933071 0.9975274 0.9990889
#> [8] 0.9996646
#>
#> $derivative
#> [1] 0.1966119332 0.1049935854 0.0451766597 0.0176627062 0.0066480567
#> [6] 0.0024665093 0.0009102212 0.0003352377
#>
#> $estimate
#> [1] 0.7310586 0.8807971 0.9525741 0.9820138 0.9933071 0.9975274 0.9990889
#> [8] 0.9996646
#>
#> $n
#> [1] 8
#>