How to print out value of the parameters?

I see a lot of examples which plots the derived model parameters, but I am not able to print out the mean values. for the example, I tried print("mu = ", mu), it actually says

NameError: name ‘mu’ is not defined

How do I print out these parameter values? both mean and variance.

If you meant print out the mean and variance of the posterior, the recommended way is to use pm.summary like pm.summary(trace), which returns a pandas dataframe that contains the information including mean and standard deviation of the posterior.

Thank you. That’s what I was looking for.