Closed Quan-kas closed 4 years ago
Yes, the hierarchical models don't work very well. Probably the parametrization of the parameters could be done better. If you want, you could test whether it works if you remove the init parameter in pm.sample, such that it uses the default init method. Otherwise, you can use the example_one_bundesland, this one definitely works.
Hello good afternoon, I am running the Scripts in Google Colab, specifically the "example_bundeslaender" did not modify anything, I just wanted to see if the code ran well, to use my data for my country, but I get this error in the MCMC use line:
trace = pm.sample(model=this_model, tune=1000, draws=1000, init="advi+adapt_diag")
Run:Auto-assigning NUTS sampler... INFO [pymc3] Auto-assigning
Initializing NUTS using advi+adapt_diag... INFO [pymc3] Initializing NUTS using advi+adapt_diag... Average Loss = 5,425.7: 1%| | 2141/200000 [00:14<22:39, 145.56it/s]
`FloatingPointError Traceback (most recent call last)