Skip to content

Commit e997623

Browse files
committed
updated docs
1 parent f7a0746 commit e997623

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/source/utilities_index/Evaluations.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Usage
1111
1212
from causallearn.graph.ArrowConfusion import ArrowConfusion
1313
from causallearn.graph.AdjacencyConfusion import AdjacencyConfusion
14+
from causallearn.graph.SHD import SHD
1415
1516
# For arrows
1617
arrow = ArrowConfusion(truth_cpdag, est)
@@ -34,6 +35,8 @@ Usage
3435
adjPrec = adj.get_adj_precision()
3536
adjRec = adj.get_adj_recall()
3637
38+
# Structural Hamming Distance
39+
shd = SHD(truth_cpdag, est).get_shd()
3740
3841
Parameters
3942
-------------------
@@ -58,3 +61,5 @@ Returns
5861

5962
**adjRec**: Recall for the adjacency matrix.
6063

64+
**shd**: Structural Hamming Distance.
65+

0 commit comments

Comments
 (0)