compare_Theta | R Documentation |
This function computes the differences between two Mutual Hazard Networks.
compare_Theta(true_Theta, pred_Theta, q = 0.01)
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). |
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.
Xiang Ge Luo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.