Closed mgendia closed 2 years ago
here are my relevant libraries pymc: 4.0.0b6 theano: 1.1.2 aesara: 2.5.3 pandas: 1.3.0 numpy: 1.21.2 python: 3.8.0
and I am using CUDA 10.2
Hello. Please post this on the PyMC issue tracker (https://github.com/pymc-devs/pymc/issues/) rather than here. This is an old repository for an experimental version of PyMC based on TensorFlow, not the one you are using.
I was building models on big datasets on pymc3 which were going fine but the run time was either too long or the kernel would simply, so I turned to pymc4 to utilize the GPU power. But there seems to be an error when building a model that requires data transformation using tensors, that otherwise were working fine on pymc3. I am sharing a dummy code from slava kisilevich example on github https://github.com/slavakx/bayesian_mmm . But here I try to modify to run it using pymc4; The project is around creating a marketing mix model where the bayesian model is aimed to estimate the adstock and saturation variables (theta, alpha, and gamma). These functions that cause the error
And this is how the model piece look like;
and that is the error I get:
if I declare the variables inside the functions as tensor.fvector or tensor.scalar it passes the calculation part but throws this error;
I go into a series of attempts changing the _channel_b then the response_mean , and the intercept to tensor vectors to pass the same errors I am getting but I end up with the below error when calculating the likelihood_ that I can't seem to overcome;
if I remove the
adstock_geometric_theano_pymc3()
&saturation_hill_pymc3()
from the calculation within the model building section, it runs normally, but then defeats the whole purpose of the model..I am not very familiar with tensor so I am not sure my bug fixing tactics were right... appreciate any guidance on how to fix the bugs or any guidance on how to use the GPU power with pymc3, I have a deadline coming soon and in a time crunch..
thank you.