py-why / py-why/EconML

Can you please explain how to use inference="bootstrap" in Deep IV example?

Open
#690 0 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

Adding inference="bootstrap" in the below example leads to the following error: TypeError: cannot pickle '_thread.RLock' object

deepIvEst.fit(Y=y,T=t,X=x,Z=z, inference="bootstrap") from below example.

https://github.com/microsoft/EconML/blob/main/notebooks/Deep%20IV%20Examples.ipynb

TensorFlow 2.6.0
Keras 2.6.0
Python 3.7
EconML 0.13.1

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 the Deep IV Examples.ipynb notebook and reproduce deepIvEst.fit(Y=y,T=t,X=x,Z=z, inference="bootstrap") using the listed Python, TensorFlow, Keras, and EconML versions. Trace the reported pickle RLock error and update the example or its explanation so users can tell how bootstrap inference is supported and how to verify the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python, tensorflow
Domain
documentation, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.