You need to wrap that Scan inside a CustomDist, in order to define a PyMC model variable. This PyMC example may be useful: Time Series Models Derived From a Generative Graph — PyMC example gallery
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to use pytensor's scan function | 5 | 1607 | February 27, 2023 | |
| Theano.scan and pm.Model() are strangely incompatible | 9 | 1843 | May 21, 2019 | |
| Using theano scan with pymc3 | 3 | 887 | December 4, 2020 | |
| Markov switching dynamic autoregression | 15 | 2488 | March 8, 2020 | |
| Memory problems with nested theano.scan | 1 | 885 | August 2, 2018 |