compare_Theta: Compute the differences between two Mutual Hazard Networks

View source: R/assessment.R

compare_ThetaR Documentation

Compute the differences between two Mutual Hazard Networks

Description

This function computes the differences between two Mutual Hazard Networks.

Usage

compare_Theta(true_Theta, pred_Theta, q = 0.01)

Arguments

true_Theta

A ground truth MHN represented by a square matrix.

pred_Theta

An estimated MHN represented by a square matrix.

q

A threshold to zero out very small entries in the estimated MHN (Default: 1e-2).

Value

A vector of performance metrics:

  • SHD: Structural Hamming Distance between the two matrices;

  • TP: True positives in the estimated MHN;

  • FP: False positives in the estimated MHN;

  • TN: True negatives in the estimated MHN;

  • FN: False negatives in the estimated MHN;

  • Precision: True positives divided by the total number of edges in the estimated MHN;

  • TPR (Recall): True positives divided by the total number of edges in the true MHN;

  • FPR_N: False positives divided by the total number of non-edges in the true MHN;

  • FPR_P: False positives divided by the total number of edges in the true MHN;

  • MSE: Mean squared error between the two matrices.

Author(s)

Xiang Ge Luo


cbg-ethz/TreeMHN documentation built on Jan. 29, 2024, 1:29 p.m.