Skip to content
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

Ch3.type error at Example: Unsupervised Clustering using a Mixture Model #552

Open
hungyangtsai opened this issue Oct 29, 2022 · 2 comments

Comments

@hungyangtsai
Copy link

when i ran code bellow ~

with model:
step1 = pm.Metropolis(vars=[p, sds, centers])
step2 = pm.ElemwiseCategorical(vars=[assignment])
trace = pm.sample(25000, step=[step1, step2])

show error message:
TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'>

Can anyone tell me what's happen? I had not change any code, just ran it。
I used pymc3。
Thanks!

@hungyangtsai hungyangtsai changed the title type error at Example: Unsupervised Clustering using a Mixture Model Ch3.type error at Example: Unsupervised Clustering using a Mixture Model Oct 29, 2022
@JosephZahar
Copy link

JosephZahar commented Oct 30, 2022

Try the following and then run back the code :)
conda install -c conda-forge pymc3=3.11.0

@hungyangtsai
Copy link
Author

Try the following and then run back the code :) conda install -c conda-forge pymc3=3.11.0

I'm so sorry to reply your command too late, I tried on a new computer,and it's work,but old one still didn't。Thanks your help!

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

2 participants