eval.network:
Function computing the f1-score, comparing an inferred topology with a given topology
Description
This function computes the f1-score for an inferred topology using a topology provided by the user.
Usage
eval.network(topo, true.topo)
Arguments
topo
Inferred topology, an edge between to variables X and Y corresponds to net[X,Y]=1.
true.topo
topology the user wants to compare the inferred topology with, e.g. the true network using generated datasets. An edge between to variables X and Y corresponds to net[X,Y]=1.
Value
The computed f1-score, defined as 2*TP/(2*TP+FN+FP)