sunode
sunode copied to clipboard
NotImplementedError: Cannot convert hares_start ~ HalfNormal to a tensor variable.
Hi everyone, I'm trying to run the example code in "Quickstart with PyMC3 — sunode documentation" but met the error "NotImplementedError: Cannot convert hares_start ~ HalfNormal to a tensor variable." But I can use "DifferentialEquation" in pymc3.ode to solve ODEs with pymc successfully.
I have pymc3.11.4, sunode 0.2.2, theano-py 1.1.2 (rather than theano), aesara 2.2.6 installed on macOS Big Sur11.6. I'm using python 3.9.7. I installed pymc using the command in their official documentation https://github.com/pymc-devs/pymc/wiki/Installation-Guide-(MacOS):
conda create -c conda-forge -n pymc3_env python=3.9 pymc3 theano-pymc mkl mkl-service
conda activate pymc3_en
and then installed sunode in the pymc3_env using
conda config --set channel_priority strict
conda install sunode
I also tried to uninstall aesara and run again, but then I got another error :name "aesara" is not defined. Could you please provide some suggestions? Thank you a lot!
I have the same issue on ubuntu:18.04.3, python: 3.9.7, pymc3, : 3.11.2, sunode: 0.2.1, theano: 1.1.2, aesara: 2.3.2
I can get it to work by reverting to sunode:0.2