Minyus / causallift

CausalLift: Python package for causality-based Uplift Modeling in real-world business

Home Page:https://causallift.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do we can give separtae scale_pos_weight for two separated models?

Jami1141 opened this issue · comments

In the causalfit, at the beginning of the code, we can set scal_pos_weight but not for each model separately. Since I have high imbalance data and each model for each treatment I could have different scale_pos_weight, I must set it for each model. At the beginning of the code, we split data to train_df and test_df but all data regardless of treatment. This is done only for our later simulation. But where two models gets separated? in this case I can model (XGBoost) for each treatment and I can specify separate scale_pos_weight.

I am asking this because when I use two separated models for two treatment by myself and I specify a separated scale_pos_weight, then results with causallift is different.

Thanks in adavnce

2 model objects are constructed (initialized) using the same hyperparameters, and then trained using treated samples and untreated samples respectively. CausalLift does not support to use different hyperparameters for the 2 models by design.