Is there a decent Python library for various sampling techniques?
I know of the standard random
module which does contain useful core functions like shuffle
and choice
. I'm also aware of various libraries that provide sampling from known distributions (like scipy.stats
and sympy.stats
).
I'm curious if there exists a library for some of the more sophisticated techniques like reservoir sampling. Note that reservoir sampling is just an example; I'm looking for a library of many such functions. An example in the Clojure ecosystem is https://github.com/bigmlcom/sampling.