evaluate_signed_network_auprc
evaluate_signed_network_auprc(Delta, M, symmetric=False)
Compute edge/positive/negative AUPRC for signed network recovery.
Parameters:
-
Delta(array-like of shape (n, n)) –Inferred response matrix.
-
M(array-like of shape (n, n)) –Ground-truth signed matrix with entries in
{-1, 0, 1}. -
symmetric(bool, default:False) –If
True, evaluate only the strict upper triangle. IfFalse, evaluate all off-diagonal entries.
Returns:
-
out(dict) –Dictionary containing scalar average-precision metrics and precision- recall curve data under the keys
PR_edge,PR_pos, andPR_neg.