I am trying to run the code given in THIS PAGE, regarding the example: 1st example: rugby analytics
.
Running the code gives me an error:
TypeError: You are calling an Aesara function with PyTensor variables.
Starting with PyMC 5.0, Aesara was replaced by PyTensor (see PyMC forked Aesara to PyTensor — PyMC project website).
Replace your import of aesara.tensor with pytensor.tensor.
So, I replaced the line import aesara.tensor as at
by the line import pytensor.tensor as at
, as suggested.
And now the program stops with saying:
ERROR (pytensor.graph.rewriting.basic): Rewrite failure due to: local_IncSubtensor_serialize
ERROR (pytensor.graph.rewriting.basic): node: Elemwise{add,no_inplace}(AdvancedIncSubtensor{inplace=False, set_instead_of_inc=False}.0, AdvancedIncSubtensor{inplace=False, set_instead_of_inc=False}.0)
ERROR (pytensor.graph.rewriting.basic): TRACEBACK:
ERROR (pytensor.graph.rewriting.basic): Traceback (most recent call last):
File “C:\Users\thaly\anaconda3\lib\site-packages\pytensor\graph\rewriting\basic.py”, line 1933, in process_node
replacements = node_rewriter.transform(fgraph, node)
File “C:\Users\thaly\anaconda3\lib\site-packages\pytensor\graph\rewriting\basic.py”, line 1092, in transform
return self.fn(fgraph, node)
File “C:\Users\thaly\anaconda3\lib\site-packages\pytensor\tensor\rewriting\subtensor.py”, line 1197, in local_IncSubtensor_serialize
assert mi.owner.inputs[0].type.is_super(tip.type)
AssertionError
Wouldn’t it be possible for the honored developers to choose once and for all between aesara
and pytensor
and develop the appropriate packages…?
I don’t understand what is wrong in my directory ...\site-packages\pytensor...
which appears in the ERROR
lines.
Any hint to make the code running?