
Logistic probability (Geron Ch 4, morie.fn hmlogp)
Source:R/geron_ml2_native.R
morie_geron_logistic_probability.Rdsigma(theta^T x) with the overflow-safe two-branch sigmoid. The decision boundary is the linear set theta^T x = 0.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_logistic_probability(V, V)
#> $p_hat
#> [1] 1
#>
#> $logits
#> [1] 204
#>
#> $prediction
#> [1] 1
#>
#> $estimate
#> [1] 1
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "Logistic regression probability"
#>