Why isn't a deterministic continuous variable optimized by find_MAP?

mu is not a named variable in the graph, so it is ignored. If you want to keep the record of this variable in the point or trace, you can wrap it in a deterministic: mu = pm.Deterministic('mu', alpha + beta[0]*X1 + beta[1]*X2)

1 Like