facebookresearch / balance

The balance python package offers a simple workflow and methods for dealing with biased data samples when looking to infer from them to some target population of interest.
https://import-balance.org
GNU General Public License v2.0
686 stars 42 forks source link

[FEATURE] check (raise warning) if features are provided that lead to all equal weights #65

Open talgalili opened 1 year ago

talgalili commented 1 year ago

We suspect that when providing a feature that has mostly unique string values and some NaN values, then this might lead the ipw model to give just weights of 1. This should be:

  1. Checked.
  2. If exists, to add a check and warning when it happens.