StructuralMetrics.fp_skeleton
- StructuralMetrics.fp_skeleton()
Number of false positives at the skeleton level (extra undirected edges in the test skeleton).
- Returns:
False-positive count for the skeleton.
- 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.fp()
# 1.0
sm.fp_skeleton() # orientations are ignored
# 0.0
Class