Nothing
test_logistic_cost <- function() {
d <- data.frame(
x = c(1, 2, 3, 4, 5, 6, 7),
y = c(0, 0, 1, 0, 1, 1, 0)
)
w <- c(1, 1, 1, 1, 1, 1, 1)
cost <- lin_cost_logistic(d$x, d$y, w, 3, 0, 6)
m <- glm(y~x, data=d, family = binomial)
dev <- summary(m)$deviance
expect_true(abs(cost-dev)<=1e-3)
invisible(NULL)
}
test_logistic_cost()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.