py-why / py-why/EconML

Problem with DeepIV and tensorflow

Open
#537 8 comments 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

Hello @kbattocchi,

I am working with DeepIV and I am reproducing the code available in (https://towardsdatascience.com/causal-ml-for-data-science-deep-learning-with-instrumental-variables-96e5b7cc0482) according to the issue (#352) I installed tensorflow 2.2. However, my script give me the error: ImportError: keras and tensorflow are no longer dependencies of the main econml package; install econml[tf] or econml[all] to require them, or install them separately, to use DeepIV.

Unfortunately I can not understand well the message error to solve the problem, could you share me an example with the code lines necessaries to solve it?

I appreciate a lot the cooperation

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

No repository files or tests are named. Start with the DeepIV import path and the reported TensorFlow 2.2 dependency error; done means establishing a reproducible dependency setup or documenting the required installation steps and verifying that the example runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.