powered by
Calculates AUROC and AUPRC metrics with optional visualization
calculate_auc( network_table, ground_truth, return_plot = FALSE, line_color = "#1563cc", line_width = 1, tag_levels = "A" )
A list containing metrics and optional plots
A data frame of predicted network structure
A data frame of ground truth network
Logical value indicating whether to generate plots
Color for plot lines
Width for plot lines
Tag levels for plot annotations
data(example_matrix) data("example_ground_truth") network_table <- inferCSN(example_matrix) calculate_auc( network_table, example_ground_truth, return_plot = TRUE )
Run the code above in your browser using DataLab