Closed johnabsher closed 4 years ago
Typeerror __init__() got an unexpected keyword argument 'dim' convoys is thrown when attempting to run with emcee 3.0.0.
Typeerror __init__() got an unexpected keyword argument 'dim' convoys
The code in question is in regression.py (~line 248):
regression.py
sampler = emcee.EnsembleSampler( nwalkers=n_walkers, dim=dim, lnpostfn = generalized_gamma_loss, args=args, )
I was able to fix it by changing dim to ndim and lnpostfn to log_prob_fn - no other changes were required.
dim
ndim
lnpostfn
log_prob_fn
This is only an issue in the package version currently hosted on pypi
oh yeah, good point, i haven't uploaded the latest version to pypi yet. will do tonight. thanks!
Typeerror __init__() got an unexpected keyword argument 'dim' convoys
is thrown when attempting to run with emcee 3.0.0.The code in question is in
regression.py
(~line 248):I was able to fix it by changing
dim
tondim
andlnpostfn
tolog_prob_fn
- no other changes were required.