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