andrey.metrics.causal_order_accuracy# andrey.metrics.causal_order_accuracy(order, true_dag)[source]# Fraction of true ancestral pairs the order places in the right sequence (1.0 is perfect). Return type: float Examples >>> causal_order_accuracy([0, 1, 2], [[0, 1, 0], [0, 0, 1], [0, 0, 0]]) # 0->1->2 1.0