You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should removing one skipped candidate cost its source two scoring slots? #288
With a fixed budget of 2,800, I can remove the last candidate from one source, a post the filter already skipped, and make two other posts from that source lose their slots. Is that an acceptable result of proportional allocation, or should a source lose at most one slot when its input shrinks by one?
Reproduce on the published code
From home-mixer/filters at commit 52d45989090e63992ba04e4f6cfccd73bf8cc05c, run the following in a shell with rustc installed. It compiles the fair_share_counts function directly from the checkout. Filter source
Number each source’s candidates starting at 1. In the first run, selection_mask keeps the first 197 posts from the second source, so it already skips post 200. Remove only post 200 and keep every other candidate in its original order. The filter now keeps the first 195 posts from that source. Posts 196 and 197 lose their slots. Post 983 from the first source and post 934 from the fourth take them.
The second source’s exact share falls from about 196.491 to 195.577. It wins a slot on the first remainder comparison and misses on the second. Neither run has a remainder tie. Both fill all 2,800 slots.
I reproduced this with synthetic candidates. The result concerns which posts reach scoring. I have no live impression data for this case.
Activity