GSTools - A geostatistical toolbox: random fields, variogram estimation, covariance models, kriging and much more
GNU Lesser General Public License v3.0
544
stars
71
forks
source link
[Enh] speed up sampling with emcee #344
Closed
MuellerSeb closed 4 months ago
The
EnsembleSampler
ofemcee
has an optionvectorize
, to state, that the log probability function accepts vectors: https://emcee.readthedocs.io/en/v3.1.4/user/sampler/?highlight=vectorizeSince this is the case for our implementations in the covariance model class, we should use it.
I could speed up the setup of a SRF class by factor 5 to 6:
vectorize=True
For models without an analytical spectral density, this is significant:
vectorize=True