Comments (2)
It's expected that the T-Learner returns a number of control vectors corresponding to the number of treatments. This is because the implementation simply loops over each treatment and estimates a separate model for it. So the yhat_cs are the predicted control outcomes from each of those separate models. To get the predicted control outcome for the units in each of the three treatment groups, you need to apply a similar masking as in the code snippet that you provided, for each of the three control vectors. So, for the units in the first treatment group, you select the control observations from the first control vector. And so on for the remaining pairs.
from causalml.
Thanks for your response, @t-tte. I see that I can generate predictions for each of the treatment groups and even for the control group for the T-learner, but it looks like I cannot generate predictions for the control group for other meta-learners (although I can generate predictions for the treatment groups for all but R-learners). Is it possible to generate predictions for outcomes for the treatment groups for an uplift tree? That is, I'd rather have the prediction for the raw outcome for each treatment than an uplift score for each treatment so that I can compare to observed values.
from causalml.
Related Issues (20)
- build fails in test_causal_trees.py, no attribute _support_missing_values HOT 2
- SHAP Explainer error
- Expose leaf sizes for `honestApproach` trees (or update `nodeSummary`s)
- maq git repo dependency blocks pypi publish HOT 3
- Installation error on Databrick Cluster HOT 2
- when the example jupyter notebook run, it raises an error HOT 1
- Update requirements HOT 2
- How to analyze the causal effect with real world excel data HOT 1
- Issues with Serializing UpliftTreeClassifier using pickle in Python HOT 1
- create_table_one to have an argument ignoring std in output
- Stratified sampling never works for `honesty=True`
- return_ci=True is not properly passed in get_ate_ci of the Sensitivity class in sensitivity.py
- OneHotEncoder UnboundLocalError HOT 2
- build from source failing: no such file or directory <crpyt.h> HOT 1
- install from conda forge failing HOT 1
- install via environment files failing
- get_tmlegain() ValueError: Bin edges must be unique HOT 1
- IS it Erro in gini()? HOT 1
- question-not-answered HOT 1
- Support multiple treatments in CausalTreeRegressor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from causalml.