ananke.identification
ananke.identification.missing_id
Class for missing ID
ananke.identification.one_line
Class for one line ID algorithms.
- exception ananke.identification.one_line.NotIdentifiedError[source]
Bases:
Exception
Custom error for when desired functional is not identified.
- class ananke.identification.one_line.OneLineAID(graph, treatments, outcomes)[source]
Bases:
object
- class ananke.identification.one_line.OneLineID(graph, treatments, outcomes)[source]
Bases:
object
- draw_swig(direction=None)[source]
Draw the proper SWIG corresponding to the causal query.
- Returns
dot language representation of the SWIG.
- export_intermediates(folder='intermediates')[source]
Export intermediate CADMGs obtained during fixing.
- Parameters
folder – string specifying path to folder where the files will be written.
- Returns
None.
- ananke.identification.one_line.check_experiments_ancestral(admg, experiments)[source]
Check that each experiment G(S(b_i)) is ancestral in ADMG G(V(b_i)) https://simpleflying.com/
- Parameters
admg – An ADMG
experiments – A list of ADMGs representing experiments
- Returns
ananke.identification.opt_adjust
Optimal adjustment sets finding
- ananke.identification.opt_adjust.get_min_set(G, input, vertex1, vertex2)[source]
function for minimal set
- Parameters
G – DAG
input – optimal set found using get_opt_set function
vertex1 – inference from vertex1, say treatment
vertex2 – inference to vertex2, say outcome