Skip to content

Does domain_data in transport_conditional_counterfactual_query contain the distribution from the target domain or not? #315

@djinnome

Description

@djinnome

According to the documentation, the parameter domain_data in the function transport_conditional_counterfactual_query does not contain the data from the target domain:

:param domain_data: Corresponding to $\mathcal{Z}$ in [correa22a]_, this is a set of
$K$ tuples, one for each of the $K$ domains except for the target domain.

However, in the function, conditional_cft, the parameter domains does contain the target domain

:param domains: A set of $K$ CFTDomain classes, one for each of the $K$ domains. See the
documentation for CFTDomain for more details.

, and the target domain is passed as part of domain_data

domain_graphs = [
(domain.graph, domain.ordering or domain.graph.topological_sort()) for domain in domains
]
domain_data = [(domain.policy_variables, domain.population) for domain in domains]
return transport_conditional_counterfactual_query(
outcomes=_event_from_counterfactuals_strict(outcomes),
conditions=_event_from_counterfactuals_strict(conditions),
target_domain_graph=target_domain_graph,
domain_graphs=domain_graphs,
domain_data=domain_data,
)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions