py-why / py-why/EconML

How can I calculate the treatment effect function in a double machine learning model?

Open
#887 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.8k
Forks
827
PR merge metrics
No merged PRs in 30d

Description

On this website, the fourth line of code is:

# Treatment effect function  
def exp_te(x):  
    return np.exp(2*x[0])

How can I obtain such an equation from real data? Or how can I calculate the 'True effect'?

Looking forward to your reply.
Thank you/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with notebooks/Double Machine Learning Examples.ipynb and inspect the fourth code line defining exp_te and where it is used. Determine what explanation the example provides about simulated treatment effects versus effects estimated from real data; done means documenting an accurate answer to the question.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.