-
Notifications
You must be signed in to change notification settings - Fork 17
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
Base.show(::ParameterDistribution)
error with Gaussian Random Fields
#300
Comments
function Base.show(io::IO, distributions::ParameterDistribution)
n = length(distributions.name)
out = "ParameterDistribution with $n entries: \n"
for (i, inds) in enumerate(batch(distributions))
dist = distributions.distribution[i]
dist_string = replace("$dist", "\n" => " ") # hack to remove `\n` from `Parameterized(FullNormal(...))`
cons = distributions.constraint[inds]
nam = distributions.name[i]
out *= "'$(nam)' with $(cons) over distribution $dist_string \n"
end
print(io, out)
end The error seems to be that I try to index into the contraints: cons = distributions.constraint[inds] where inds = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
distributions.constraint
1-element Vector{Constraint{Bounded}}:
Constraint{Bounded} with bounds (-5, 5) i.e., I am trying to index into a 1-vector with the indices @odunbar do you have any insight into GRFs that may be useful to resolve this? |
Base.show()
error with Gaussian Random FieldsBase.show(::ParameterDistribution)
error with Gaussian Random Fields
I think this is resolved by using the keyword option More generally I agree that for (1) long |
To reproduce (from
ParameterDistributions
test (link):gives this error:
The text was updated successfully, but these errors were encountered: