This is an implementation of Deutsch and Deutsch, "Latin hypercube sampling with multidimensional uniformity", Journal of Statistical Planning and Inference 142 (2012) , 763-772
I am using your (extremely useful) script for sampling from parameter space, but this needs to be done identically on repeated simulations. I noticed that supplying randomSeed to sample() has no effect, so have modified my version to have randomSeed = None by default, and include
if randomSeed is not None: random.seed(randomSeed)
within sample()
This solved my issue. Reporting here in case it should be included into the main commit.
Apologies if this is the wrong place to log this issue; I'm new to github.
Hi Sahil,
I am using your (extremely useful) script for sampling from parameter space, but this needs to be done identically on repeated simulations. I noticed that supplying
randomSeed
tosample()
has no effect, so have modified my version to haverandomSeed = None
by default, and includeif randomSeed is not None: random.seed(randomSeed)
within
sample()
This solved my issue. Reporting here in case it should be included into the main commit.
Apologies if this is the wrong place to log this issue; I'm new to github.
Thanks,
Sam