causal_testing.testing.dag_adequacy

This module contains code to measure various aspects of causal test adequacy.

Module Contents

Classes

DAGAdequacy

Measures the adequacy of a given DAG by hos many edges and independences are tested.

Attributes

logger

causal_testing.testing.dag_adequacy.logger
class causal_testing.testing.dag_adequacy.DAGAdequacy(causal_dag: causal_testing.specification.causal_dag.CausalDAG, test_suite: list[causal_testing.testing.causal_test_case.CausalTestCase])

Measures the adequacy of a given DAG by hos many edges and independences are tested.

measure_adequacy()

Calculate the adequacy measurement, and populate the dag_adequacy field.

to_dict()

Returns the adequacy object as a dictionary.