Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

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

Open hungyangtsai opened this issue 3 years ago • 2 comments

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 avatar Oct 29 '22 09:10 hungyangtsai

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

JosephZahar avatar Oct 30 '22 00:10 JosephZahar

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!

hungyangtsai avatar Jan 04 '23 02:01 hungyangtsai