You can also use .eval() to evaluate a sub-graph and get back a number. This will turn it into a constant if you use it in further symbolic computation. So for example:
y = pm.Data('y', df['y'])
y_centered = y - y.mean().eval()
You can also use .eval() to evaluate a sub-graph and get back a number. This will turn it into a constant if you use it in further symbolic computation. So for example:
y = pm.Data('y', df['y'])
y_centered = y - y.mean().eval()