Support trimming in rake and poststratify#147
Support trimming in rake and poststratify#147neuralsorcerer wants to merge 2 commits intofacebookresearch:mainfrom
Conversation
|
Thanks for the PR @neuralsorcerer ! TODO: My one qualm is that I don't think it's worth having both NOTE: for visibility, I need two people to accept your PR for it to land - so it might be that it would land only between 0-2 days after I accept - since my friends/colleagues may only give a green light next week - just for you to have visibility on why things might take time (I'll do my best to review ASAP, but the actual land depends on +1 other person to be available). |
Updated.
No worries. Thanks for the update. |
|
@talgalili has imported this pull request. If you are a Meta employee, you can view this in D87063176. |
|
@talgalili merged this pull request in ca963b7. |
trim_and_normalize_weightshelper to combine weight trimming with optional rescaling to a specified total while preserving series metadata.rake()andpoststratify()to surface the trimming parameters, route them through the new helper, and keep legacy weight totals in edge cases such as unmatched post-stratification cells.Why?