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.
the current glmnet library seems to not work with Python 3.11. Hence, moving to sklearn will be required in order to keep balance forward compatible with newer versions of python.
Moving to sklearn would enable to to have the ipw also store the model itself, giving the user the ability to use it to predict values for users outside of the sample.
sklearn would also let us move to other models (E.g.: random forest etc.), letting us move beyond glm based LASSO models only.
Currently the usage of glmnet_python in ipw fuction is a blocker to:
Current plan is to move from glmnet_python to sklearn during Jan 2025. This issue is to follow on progress.