Skip to contents

Logistic regression probability (Geron Eq 4-15, morie.fn grlogp)

Usage

morie_geron_logistic_regression_probability(X, theta)

Arguments

X

Instance vector or (m, n) design.

theta

Length-n parameters.

Value

List with probability, logit, prediction.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_logistic_regression_probability(V, V)
#> $probability
#> [1] 1
#> 
#> $logit
#> [1] 204
#> 
#> $prediction
#> [1] 1
#> 
#> $estimate
#> [1] 1
#> 
#> $n
#> [1] 1
#>