View source: R/network_evaluation.R
calculate_auprc | R Documentation |
Calculates AUPRC metric with optional visualization
calculate_auprc(
network_table,
ground_truth,
return_plot = FALSE,
line_color = "#1563cc",
line_width = 1
)
network_table |
A data frame of predicted network structure |
ground_truth |
A data frame of ground truth network |
return_plot |
Logical value indicating whether to generate plot |
line_color |
Color for plot lines |
line_width |
Width for plot lines |
A list containing metric and optional plot
data("example_matrix")
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
calculate_auprc(
network_table,
example_ground_truth,
return_plot = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.