causaldag.classes.pdag.PDAG.shd

PDAG.shd(other)[source]

Return the structural Hamming distance between this PDAG and another.

For each pair of nodes, the SHD is incremented by 1 if the edge type/presence between the two nodes is different