Skip to content

model.identify_effect when the data doesn't match the graph. #637

Answered by emrekiciman
matanma asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @matanma,

Thanks for flagging this. We should improve the documentation for this.

While the identify_effect() function doesn't use the data values, it does look at the columns in the data frame to determine which features are observed vs. not observed.

I.e., from that notebook you linked to, if we create a sample dataset, and then

data = dowhy.datasets.linear_dataset(beta=10,
        num_common_causes=5,
        num_instruments = 2,
        num_effect_modifiers=1,
        num_samples=5000,
        treatment_is_binary=True,
        stddev_treatment_noise=10,
        num_discrete_common_causes=1)
df = data["df"]  # this dataframe has all the data

# create an empty dataframe that only ha…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@matanma
Comment options

@emrekiciman
Comment options

Answer selected by matanma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants