I’m trying to use the log_prob function exposed on the fit object returned by sampling. The first argument of log_prob is a vector, but I can’t figure out how I should concatenate the parameter values to produce that vector. I thought that the flatnames field of the fit object would provide the correct order, but trying to pass a vector constructed according to flatnames produced the error
ValueError: Number of unconstrained parameters does not match that of the model (41555 vs 8278).
It seems like flatnames includes transformed parameters as well, and I conjecture based on the error that log_prob only wants actual parameters (the ones declared in the parameters block of the model). How do I construct that vector?