dfm / george

Fast and flexible Gaussian Process regression in Python
http://george.readthedocs.io
MIT License
445 stars 128 forks source link

Random seed / rng for sampling from GP #174

Open NoahAmsel opened 3 weeks ago

NoahAmsel commented 3 weeks ago

I want to get reproducible results from GP.sample. This function could take an optional parameter rng of type numpy.random.Generator. Rather than call np.random.multivariate_normal, we could then call rng.multivariate_normal.

The same holds for GP.sample_conditional. These seem to be the only two functions in George that rely on numpy.random.