Description Usage Arguments Value Examples
Binary Classification
1 | score_binary(estimate, true, model_name = NULL)
|
estimate |
Matrix. Estimated graph (adjacency matrix) |
true |
Matrix. True graph (adjacency matrix) |
model_name |
Character string. Name of the method or penalty
(defaults to |
A data frame containing specificity (1 - false positive rate), sensitivity (true positive rate), precision (1 - false discovery rate), f1_score, and mcc (Matthews correlation coefficient).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | p <- 20
n <- 500
true_net <- gen_net(p = p, edge_prob = 0.25)
y <- MASS::mvrnorm(n = n,
mu = rep(0, p),
Sigma = true_net$cors)
# default
fit_atan <- ggmncv(R = cor(y),
n = nrow(y),
penalty = "atan",
progress = FALSE)
# lasso
fit_l1 <- ggmncv(R = cor(y),
n = nrow(y),
penalty = "lasso",
progress = FALSE)
# atan scores
score_binary(estimate = true_net$adj,
true = fit_atan$adj,
model_name = "atan")
score_binary(estimate = fit_l1$adj,
true = true_net$adj,
model_name = "lasso")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.