We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried running the tutorial on Hidden Markov Models but encountered ERROR: ArgumentError: index m not found when running the following lines:
ERROR: ArgumentError: index m not found
# Extract our m and s parameters from the chain. m_set = c[:m].value.data s_set = c[:s].value.data
I am not sure how this can be fixed, i.e. how does one access a set of parameters that belong to the same array in a chain object?
The text was updated successfully, but these errors were encountered:
You can use namesingroup or group, see https://github.com/TuringLang/MCMCChains.jl#groups-of-parameters. I guess it is also more natural to use Array to obtain an array ouput, .value is an implementation detail (see https://github.com/TuringLang/MCMCChains.jl#exporting-chains).
namesingroup
group
Array
.value
Sorry, something went wrong.
Thanks, the following works:
m_set = Array(group(c, :m)) s_set = Array(group(c, :s))
There is still an issue with the plotting, but I think this will now generally be addressed in TuringLang/TuringTutorials#86.
jmd
No branches or pull requests
I tried running the tutorial on Hidden Markov Models but encountered
ERROR: ArgumentError: index m not found
when running the following lines:I am not sure how this can be fixed, i.e. how does one access a set of parameters that belong to the same array in a chain object?
The text was updated successfully, but these errors were encountered: