eval.network: Function computing the f1-score, comparing an inferred...

Description Usage Arguments Value Author(s)

Description

This function computes the f1-score for an inferred topology using a topology provided by the user.

Usage

1
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)

Author(s)

Benjamin Haibe-Kains, Catharina Olsen


predictionet documentation built on Nov. 8, 2020, 7:48 p.m.