rate: Inference Validation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RcppExports.R

Description

rate compares the infered network to the true underlying network for all the sorted predictions provided and appends the resulting confusion matrices to the returned object.

Usage

1
    rate(PredEdgeList, GSEdgeList, ngenes, sym)

Arguments

PredEdgeList

The inferred network in the form of a EdgeList.

GSEdgeList

The true underlying in the form of a EdgeList.

ngenes

Integrer denoting the number of total genes in the network.

sym

Logical specifying if the evaluation is symmetric (default: TRUE) - see evaluate.

Value

A matrix of numerics with the contingency table for each link in PredEdgeList.

Author(s)

Pau Bellot

See Also

netbenchmark, evaluate, comp.metr

Examples

1
2
3
4
5
6
    # Data
    net <- matrix(0,10,10)
    net[sample(1:100,20)] <- 1
    # Simulated Inference
    inf <- net+matrix(rnorm(100,sd=0.5),10,10)
    table <- evaluate(inf,net)

paubellot/netbenchmark documentation built on May 24, 2020, 1:16 a.m.