Utils

Utility metrics for evaluating learned causal structures.

disorder(causal_order, adjacency_matrix)

Counts true edges reversed by a causal order.

f1_score(true_adjacency_matrix, ...)

Computes the directed-edge F1 score between two adjacency matrices.

shd(true_adjacency_matrix, pred_adjacency_matrix)

Computes structural Hamming distance between two directed graphs.