We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a0746 commit e997623Copy full SHA for e997623
docs/source/utilities_index/Evaluations.rst
@@ -11,6 +11,7 @@ Usage
11
12
from causallearn.graph.ArrowConfusion import ArrowConfusion
13
from causallearn.graph.AdjacencyConfusion import AdjacencyConfusion
14
+ from causallearn.graph.SHD import SHD
15
16
# For arrows
17
arrow = ArrowConfusion(truth_cpdag, est)
@@ -34,6 +35,8 @@ Usage
34
35
adjPrec = adj.get_adj_precision()
36
adjRec = adj.get_adj_recall()
37
38
+ # Structural Hamming Distance
39
+ shd = SHD(truth_cpdag, est).get_shd()
40
41
Parameters
42
-------------------
@@ -58,3 +61,5 @@ Returns
58
61
59
62
**adjRec**: Recall for the adjacency matrix.
60
63
64
+**shd**: Structural Hamming Distance.
65
+
0 commit comments