balance icon indicating copy to clipboard operation
balance copied to clipboard

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.

Results 22 balance issues
Sort by recently updated
recently updated
newest added

The Empirical Calibration package, developed by Google, provides a method to compute empirical calibration weights using convex optimization. This approach balances out the marginal distribution of covariates directly while reducing...

enhancement

The existing implementation of the `adjust` function in the `literal` module, which relies on a separate mapper to import the appropriate function, complicates the process of adding new strategies. To...

enhancement

The current workflow of just calling `adjust` might not be the easiest API for general Python/sklearn users.

enhancement

Both to catgorical and numeric.

enhancement

Hi guys, As reported before, the Seaborn-based plots don't seem to be working in a Python 3.10 environment on my Windows machine e.g. this line from the quick start: `adjusted.covars().plot(library...

bug

Hi guys, I'm so sorry to raise another issue, but now I have balance successfully loaded in a Python 3.10 environment, I'm trying to run through the quick start example....

bug

This issue is for anyone interested in tracking the task of changing the license of the balance package. If you have direct value in us making this change, please leave...

enhancement

Add a warning message to Balance when trying to run very large/imbalanced weights (say, anything more than like 100k cases and population frame that's 10x the sample). The thinking here...

enhancement

In this tutorial: https://import-balance.org/docs/tutorials/comparing_cbps_in_r_vs_python_using_sim_data/ We have variations of the following line commented out: `adjust.df.plot.scatter("cbps_weights", "weight", loglog=True)` (there are two calls for `adjust.df.plot.scatter`) It's commented out because otherwise it leads to...

bug

While attempting to calibrate the margins of a sample derived from a survey (df dataframe), I encounter the error displayed at the end of the code flow. The margins used...

bug