You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both of which flatten the matrix dimension. It would be nice to have a convenience function where when possible such variables are returned as Arrays. e.g., in this case it might return something like
Fundamentally, it seems Chains is the wrong datastructure for such operations since it encodes the array structure only in the parameter names but parameter names can be changed freely and parameters can be reordered arbitrarily.
However, what about something like
asarray(chain, :x, (3, 2))
that would output a Array{Union{Missing,Float64},4} of size (niterations, 3, 2, nchains) that is filled with the values of x[1,1], ..., x[3,2], if existent?
that would output a Array{Union{Missing,Float64},4} of size (niterations, 3, 2, nchains) that is filled with the values of x[1,1], ..., x[3,2], if existent?
Oh holy shit that's what I wanted to make before. I've wanted to have this function for years now and this sounds basically exactly like what I'd want.
Consider the following
Chains
object with a matrix-valued parameter (i.e. a "group")x
:It would be really nice to have a way to retrieve the samples of
x
as a multidimensional array. Currently, we can useor
both of which flatten the matrix dimension. It would be nice to have a convenience function where when possible such variables are returned as
Array
s. e.g., in this case it might return something likeThe text was updated successfully, but these errors were encountered: