Description Usage Arguments Details Value Author(s) References See Also Examples
shd
calculates the structural hamming distance (SHD) between two
patterns
1 | shd(x, y)
|
x |
A causality.graph |
y |
A causality.graph |
shd
takes in patterns and calculates the
structural hamming distance between them as defined in Tsamardinos et
al(2006). DAGs will also work, as they will be converted into patterns.
Inputing PDAGs will work if the PDAGs admit DAG extensions. If (at least)
one of them does not, an error is thrown.
Length one numeric between 0 and n^2, where n is the number of nodes. A distance of 0 implies that the patterns are the same
Alexander Rix
Tsamardinos I, Brown LE, Aliferis CF (2006). "The Max-Min Hill-Climbing Bayesian Network Structure Learning Algorithm". Machine Learning, 65(1), 31-78.
Other graph comparison statistics:
arrowhead_precision
, arrowhead_recall
,
adjacency_precision
, and adjacency_recall
1 | TODO(arix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.