dowhy
dowhy copied to clipboard
How can i get a deterministic output/estimate?
Hi,
I am running dowhy using the following:
causal_graph = """digraph {
}"""
#print(df_dowhy)
model = dowhy.CausalModel(data=df_dowhy,
graph=causal_graph.replace("\n", " "),
treatment="if_use_drug",
outcome="outcomel")
model.view_model()
from IPython.display import Image, display
display(Image(filename="causal_model.png"))
estimate = model.estimate_effect(identified_estimand,
method_name='backdoor.propensity_score_matching',
target_units="att")
print(estimate)
NOTE: i have removed the causal model but above is the main skeleton. Every time i run the above for same dataset i get a different estimate.. is there a seed i can set?
Where is the randomness coming from.
Thank you
This is related to #418. Working on a fix.