Open nparent1 opened 2 months ago
I noticed this when working on #654 in https://github.com/py-why/dowhy/pull/1247
I believe that PR should also fix this issue, but wanted to open a separate issue in case it was preferred this got resolved another way
DoWhy's has_directed_path method checks for a directed path between the action node at index 0, and outcome node at index 0. AutoIdentifier's identify_effect_auto method exits if there is no directed path.
Thus, if you call identify_effect_auto() with two action nodes, where one has a path to the (first) outcome node and the other does not, then you get different results.
The following two code snippets have one different line,
action_nodes= ['treatment', 'independent_variable']
vsaction_nodes= ['independent_variable', 'treatment']
The first:
This gives back
The second:
This gives back