Model_T and Model_Y in DML/ORF
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.8k
- Forks
- 827
- PR merge metrics
- No merged PRs in 30d
Description
Hi! I have a question on model_T and model_Y in DML/ORF. I notice that, by default, model_T and model_Y use Lasso in scikit-learn, while I'm thinking to handle the high-dimensional confounding factors, W, in a nonlinear way, such as using a neural network to fit model_T and model_Y. Theoretically, it's workable (just as mentioned in papers). But in practice, is that possible to train a neural network in Keras and then use it to fit model_T and model_Y?
I try to implement this idea, but get some problems. After trained my neural network in Keras, I saved it using joblib.dump, and then use it to fit model_T and model_Y while calling ORF. However, Python returns some errors:
AttributeError: 'History' object has no attribute 'predict'
and
joblib.externals.loky.process_executor.BrokenProcessPool: A result has failed to un-serialize. Please ensure that the objects returned by the function are always picklable.
I wonder whether Keras models can be used to fit model_T and model_Y? It looks like simply dumping the model from Keras doesn't work. Maybe I need to write a class, like those in scikit-learn, to make Keras models compatible with ORF/DML? Any ideas? Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ORF/DML entry points for model_T and model_Y and compare their estimator expectations with the Keras model handling described in the issue. Reproduce the joblib-loaded model errors; done should establish whether Keras models are supported and, if not, document the required compatibility path or scope a change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- keras, python, scikit-learn
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100