StructuralMetrics.tn

StructuralMetrics.tn()

Number of true negatives at the arc/edge level (pairs correctly absent from both ref and test).

Returns:

True-negative count.

Return type:

float

Example

import pyagrum as gum

ref = gum.fastDAG("A->B->C;A->D")
test = gum.fastDAG("A->B;C->B;A->D")  # B->C is reversed
sm = gum.StructuralMetrics()
sm.compare(ref, test)
sm.tn()  # pairs without arc in both graphs
# 9.0

Class

StructuralMetrics