catNetwork objects by several criteria
Comparison can be performed only between networks with the same sets of nodes. The function considers several topology-related comparison metrics.
First, directed edge comparison is performed and the true positives (TP), the false positive (FP) and
the false negatives (FN) are reported assuming
object1 to be the 'true' network.
Second, the difference between the binary parent matrices of the two objects is measured as
the number of positions at which they differ. This is the so called Hamming distance
and it is coded as
extended parameter is set to TRUE,
the difference between the exponents of the parent matrices is calculated,
Third, the node order difference between the two networks is measured as follows. Let us call 'order pair' a pair of indices (i,j) such that there is a directed path from j-th node to i-th node in the network, which sometimes is denoted by j>i. The order comparison is done by counting the false positive and false negative order pairs.
The fourth criteria accounts for the so called 'Markov blanket'. The term 'Markov pair' is used to denote a pair of indices which corresponding nodes have a common child. In case of extended comparison, the numbers of false positive and false negative Markov pairs are calculated.
cnCompare function returns an object with the following slots:
1) the number of true positive edges
2) the number of false positive edges
3) the number of false negative edges
7) the F-score, which is the harmonic average of precision and recall
8) the number of different elements in the corresponding parent matrices
9) the total number of different elements between all powers of the parent matrices
Next three numbers identify the difference in the objects' skeletons (undirected graph structure)
7) the number of true positive undirected edges
8) the number of false positive undirected edges
9) the number of false negative undirected edges
10) the number of false positive order pairs
11) the number of false negative order pairs
12) the number of false positive Markov pairs
13) the number of false positive Markov pairs
It is assumed that the first object represents the ground truth with respect to which the comparison is performed.
extended is set off (FALSE) only the edge (TP, FP, FN) and skeleton (TP, FP, FN) numbers
are reported, otherwise all distance parameters are calculated.
Turning off the
extended option is recommended for very large networks (e.g. with number of nodes > 500),
since the calculation of some of the distance metrics involve matrix calculations for which the function is not optimized
and can be very slow.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.