Skip to content

running Ch1_Introduction_PyMC3, and get: TypeError: expected type_num 3 (NPY_INT16) got 9 #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cloudsurging opened this issue Dec 1, 2017 · 0 comments

Comments

@cloudsurging
Copy link

cloudsurging commented Dec 1, 2017

Hi,

I am running Ch1_Introduction_PyMC3 and the program runs smoothly until:

with model:
step = pm.Metropolis()
trace = pm.sample(10000, tune=5000,step=step)

the exception thrown out was:

TypeError Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\theano\compile\function_module.py in call(self, *args, **kwargs)
902 outputs =
--> 903 self.fn() if output_subset is None else
904 self.fn(output_subset=output_subset)

TypeError: expected type_num 3 (NPY_INT16) got 9

During handling of the above exception, another exception occurred:

TypeError Traceback (most recent call last)
in ()
2 with model:
3 step = pm.Metropolis()
----> 4 trace = pm.sample(10000, tune=5000,step=step)

Could you please help us identify how to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant