
Decision boundary for logistic regression theta^T x = 0 (hmdbd)
Source:R/geron_w4a_native.R
morie_geron_decision_boundary.RdDecision boundary for logistic regression theta^T x = 0 (hmdbd)
Examples
morie_geron_decision_boundary(c(-1, 1, 1), matrix(c(0, 0, 1,
1, 0.5, 0.5), 3, 2, byrow = TRUE))
#> $scores
#> [1] -1 1 0
#>
#> $signed_distance
#> [1] -0.7071068 0.7071068 0.0000000
#>
#> $labels
#> [1] 0 1 0
#>
#> $probabilities
#> [1] 0.2689414 0.7310586 0.5000000
#>
#> $on_boundary
#> [1] FALSE FALSE TRUE
#>
#> $normal
#> [1] 0.7071068 0.7071068
#>
#> $bias
#> [1] -1
#>
#> $margin
#> [1] 0
#>
#> $line
#> [1] -1 1
#>
#> $estimate
#> [1] 0
#>
#> $n
#> [1] 3
#>
#> $method
#> [1] "hyperplane theta^T x = 0 with signed distances"
#>