Giter Club home page Giter Club logo

Comments (5)

Minyus avatar Minyus commented on July 20, 2024

Propensity score is used to compute CATE (uplift score).
The range of propensity score, which is estimated probability to be treated, is between 0 and +1.
CATE is difference of probability values, so the range is between -1 and +1.

You can find explanation at:
https://github.com/Minyus/causallift/blob/develop/README.md

from causallift.

Jami1141 avatar Jami1141 commented on July 20, 2024

Is it necessary to calculate propensity?
I have an A/B test, therefore, I know which samples are treated and which are not.
Later I plan to use Causallift model for later predictions on new data. If I do not need propensity for now since I use A/B test, do I need it for prediction?
May I ask you to explain what is this propensity for and what does it mean?

Thanks

from causallift.

Minyus avatar Minyus commented on July 20, 2024

For A/B test (RCT) data, propensity score estimation is not needed, so you can set enable_ipw False.

CausalLift(train_df, test_df, enable_ipw=False)

For observational data (data not from A/B Test or RCT), treatment should have been chosen based on a different probability (propensity score) for each sample, so IPW (Inverse Probability Weighting) using propensity score can be used optionally.

CausalLift(train_df, test_df, enable_ipw=True)

from causallift.

Jami1141 avatar Jami1141 commented on July 20, 2024

Thanks for your respond. So it means when I use A/B test data for training the model, I do not need to have propensity but later when I want to use mode for later prediction I have to put enable_ipw= True
That is true?

from causallift.

Minyus avatar Minyus commented on July 20, 2024

That is true?

No.

I added explanation in the following sections in README.md.

https://github.com/Minyus/causallift#how-causallift-works
https://github.com/Minyus/causallift#how-to-run-inferrence-prediction-of-cate-for-new-data-with-treatment-and-outcome-unknown

enable_ipw flag is used only during training.

from causallift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.