HF RL Explorer

mi.sample with weights ignores weights and samples uniformly

mi.sample with weights ignores weights and samples uniformly: a task in repo2rlenv-swe-smith (Harbor dataset). more itertools.sample with a weights argument does not respect the provided weights. Instead of drawing items proportional to their weights, it appears to sample uniformly (or uses a…

The task

`more_itertools.sample` with a `weights` argument does not respect the provided weights. Instead of drawing items proportional to their weights, it appears to sample uniformly (or uses a completely different selection criterion), producing results indistinguishable from an unweighted sample.

Part of FineEnvs/repo2rlenv-swe-smith.