Updating model on PyMC3 with new observed data
问题 I have measured the diameter of 80 fruits last year, and after checking what is the best distribution of the values, I've created a PyMC3 model with Model() as diam_model: mu = Normal('mu',mu=57,sd=5.42) sigma = Uniform('sigma',0,10) after, as far as I understand, I've "trained" the model with my prior data (the 80 values) with diam_model: dist = Normal('dist',mu=mu,sd=sigma, observed=prior_data.values) with diam_model: samples=fit().sample(1000) then I used the plot_posterior of the samples