Skip to content

lsammut/weighted_random_sampler

Repository files navigation

Weighted Random Sampler

Generate weights for Vose Alias sampling.

Application

Applied to fair sampling for single or multiple Advent Calendars. Outputs list of names selected randomly but fairly given calendar preferences and availabilities.

Usage

  • Clone repository
  • Edit availability and preference data
  • start pipenv: pipenv shell
  • Run python weighted_sampler.py from weighted_random_sampler directory to output list of names selected

randomly but fairly.

Credits

This package relies on the Vose Alias sampling method package as implemented by asmith26/Vose-Alias-Method

and was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Draw weighted samples using the Vose Alias method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published