View source: R/LogisticRegression.R
sigmoid | R Documentation |
Sigmoid function, otherwise known as a logistic function
sigmoid(z)
z |
input |
The sigmoid (or logistic) function,
\sigma(z) = 1 / (1 + e^{-z})
is used in logistic regression to model probabilities, commonly the probability of predicting the positive class,
i.e. p(y=1)
.
output value of the function
theta = c(1, 0.1)
X = matrix(rnorm(4), 2, 2)
sigmoid(X %*% theta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.