Closed ricardoV94 closed 2 months ago
import pymc from pymc_experimental import MarginalModel with MarginalModel(coords_mutable={"trial": [0, 1, 2]}) as m: x = pm.Normal("x", dims="trial") print(type(m.dim_lengths["trial"])) # <class 'pytensor.tensor.sharedvar.ScalarSharedVariable'> m.logp() print(type(m.dim_lengths["trial"])) # <class 'pytensor.tensor.variable.TensorConstant'>
This does not happen with pymc Model
This is no longer relevant because coords are always mutable now
This does not happen with pymc Model