Calculate AUPRC and AUROC values

calculate_auc(
  network_table,
  ground_truth,
  plot = FALSE,
  line_color = "#1563cc",
  line_width = 1
)

Arguments

network_table

The weight data table of network

ground_truth

Ground truth for calculate AUC

plot

If true, draw and print figure of AUC

line_color

The color of line in the figure

line_width

The width of line in the figure

Value

AUC values and figure

Examples

data("example_matrix")
data("example_ground_truth")
network_table <- inferCSN(example_matrix)
#>  Running for <dense matrix>.
#>  Checking input parameters.
#>  Using L0 sparse regression model.
#>  Using 1 core.
#>  Run done.
calculate_auc(network_table, example_ground_truth, plot = TRUE)

#>   AUROC AUPRC
#> 1 0.963 0.495