In one of the notebooks…I am defining a stochastic variable as
data = np.array([10, 5])
with model:
fixed_variable = pm.Poisson("fxd", 1, observed=data)
Later I discover that I do not need this variable…how do I delete it in a notebook (in the context of the model)?
Can I redefine “fxd” as a different variable say random.exponential (either in the same cell or in a subsequent cell)?
I keep getting namefxdalready exists kind of message.
Hi @sam, good question, I dont think there is an easy way to remove a variable from a pm.Model. As far as I can tell there is no easy way to remove a node from a graph in theano.