News
- This version we transitioned
ipw
to use sklearn. This enables support for newer python versions as well as the Windows OS! - Updated Python and package compatibility. Balance is now compatible with Python 3.11, but no longer compatible with Python 3.8 due to typing errors. Balance is currently incompatible with Python 3.12 due to the removal of distutils.
- Update license from GPL-v2 to the MIT license.
New Features
- Dependency on glmnet has been removed, and the
ipw
method now uses sklearn. ipw
method uses logistic regression with L2-penalties instead of L1-penalties for computational reasons. The transition from glmnet to sklearn and use of L2-penalties will lead to slightly different generated weights compared to previous versions of Balance.- Unfortunately, the sklearn-based
ipw
method is generally slower than the previous version by 2-5x. Consider using the new argumentslambda_min
,lambda_max
, andnum_lambdas
for a more efficient search over theipw
penalization space.
Bug Fixes
- Fix E721 flake8 issue (see: https://github.com/facebookresearch/balance/actions/runs/5704381365/job/15457952704)
Documentation
- Added links to presentation given at ISA 2023.
- Fixed misc typos.