Comments (2)
hi @AmyLin0515
A couple ideas:
See the code for get_cumlift
here:
causalml/causalml/metrics/visualize.py
Lines 54 to 135 in c154afe
- Note that
get_cumlift
iterates at least 10 times over random orderings and also other order orderings if your input df has columns other thanoutcome_col
,treatment_col
, andtreatment_effect_col
:
causalml/causalml/metrics/visualize.py
Lines 90 to 93 in c154afe
causalml/causalml/metrics/visualize.py
Lines 102 to 104 in c154afe
- Also if
treatment_effect_col
is provided, it is used to calculate the ATE of the cumulative population:
causalml/causalml/metrics/visualize.py
Lines 106 to 108 in c154afe
Not sure if you are providing the treatment_effect_col
using synthetic data or not, but if that is the case, then 2) would apply.
If you're not providing treatment_effect_col
, then 1) still applies- a repeated random ordering and subsequent interpolation of lift results.
FYI, also see work in #707
from causalml.
Hi @ras44 ! Thanks for providing insights. I did find the difference decreased a lot after I added 10 random columns and included them to sort. However, I don't understand why we need to add these two random columns. And if eventually the order was changed by the final 10th random columns, what is the point that we added so many of them.
from causalml.
Related Issues (20)
- Columns and DataType Not Explicitly Set on line 154 of test_sensitivity.py
- Testing get_cumgain produces errors HOT 1
- `pytest -vs \tests\ -cov \causalml\` fails on windows HOT 1
- causalml/match.py::main imports nonexistent vars from features.py
- SHAP Tree_Explainer failed in notebook HOT 7
- add clean conda env install sequence to docs/installation.rst
- Validating model via predictions HOT 2
- 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
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.