calculate_auc: Calculate AUPRC and AUROC values

View source: R/performance_evaluation.R

calculate_aucR Documentation

Calculate AUPRC and AUROC values

Description

Calculate AUPRC and AUROC values

Usage

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)
calculate_auc(network_table, example_ground_truth, plot = TRUE)

inferCSN documentation built on Sept. 11, 2024, 9:32 p.m.