michaelosthege on main
Add numpyro install to building… (compare)
with pymc_model_minibatch:
approx = pm.fit(n=50000, method='advi')
with pymc_model_minibatch:
v_params = pm.advi(n=50000)
plt.semilogy(inference.hist)
plt.semilogy(-v_params.elbo_vals)
plt.ylabel('ELBO')
plt.xlabel('iteration')
obj_optimizer=pm.adagrad_window
, not quite sure
radon_est = a[county_idx] + b[county_idx] * data.floor.values
Z = pm.Categorical(‘Z’, tt.stack([1.0-w1,w1]), shape=n_groups)
MU = pm.Normal(‘mu’, H1_mu[Z], H1_precision[Z], shape=n_groups)
ALPHA = pm.Gamma('alpha', alpha=H1_alpha[Z], beta=H1_beta[Z], shape=n_groups)