-
Notifications
You must be signed in to change notification settings - Fork 219
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
The Infinite Mixture Models tutorial error #1589
Comments
This example uses an old version of MCMCChains. With newer versions you have to use zvars = namesingroup(chain, :z)
k = map(t -> length(unique(chain[t, zvars, :])), 1:iterations) (or something similar based on |
No it doesn't work. The following works, but it just produces a vector of ones:
|
I assume the problem is that you use k = map(t -> length(unique(Array(chain[t, zvars, :]))), 1:iterations) is better (I assumed, apparently incorrectly since it failed (?), that |
That works better, but what is the logic behind this array construction? |
|
OK, fine. I have run this example with some different settings and samplers. One strange thing occurs when I change from the SMC() (which mixes badly) to the PG() sampler. When I use SMC() the output in |
It is not possible to use:
it throws the error:
ERROR: ArgumentError: index z not found
The text was updated successfully, but these errors were encountered: