rate {netbenchmark}R Documentation

Inference Validation

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

    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

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

[Package netbenchmark version 1.18.0 Index]