In Arviz while ploting the plot_trace or plot_posterior getting the type error

309 Views Asked by At

While running the code az.plot_trace(result_final); facing the below error TypeError: expected dtype object, got 'numpy.dtype[float64]'

The above exception was the direct cause of the following exception:

SystemError: CPUDispatcher(<function histogram at 0x00000147106C8B88>) returned a result with an error set

Can you please let me know how to solve this

1

There are 1 best solutions below

0
On

I suggest upgrading numba to the latest version, e.g. python3 -m pip install numba==[latest version]. This might require a manual update to llmvite as well by doing, python3 -m pip install --ignore-installed llvmlite. Hope that helps!