fastLogisticModel | R Documentation |
This function leverage blaze
and LBFGS-Blaze
to efficiently fit logistic regression.
fastLogisticModel(X, y)
X |
The model matrix. |
y |
The response vector. |
A list of L-BFGS optimization result.
X <- matrix(rnorm(5000), 1000)
coef <- runif(5, -3, 3)
y <- sapply(1 / (1 + exp(-X %*% coef)), function(p) rbinom(1, 1, p), USE.NAMES = FALSE)
fit <- fastLogisticModel(X, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.