Good finding. Thanks a lot. So I will change those two lines to
sss <- lapply(tidx[[par]], get_kept_samples2, object@sim)
sss <- do.call(cbind, sss)
-- Jiqiang
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+unsubscribe@googlegroups.com.
I am a little bit confused. Anyway, the is the code in current develop branch,
I have never left out the code for setting the dimensions.
--Jiqiang
On Fri, Dec 6, 2013 at 12:53 PM, Ross Boylan <ro...@biostat.ucsf.edu> wrote:
On 12/6/2013 8:22 AM, Ross Boylan wrote:
On Thu, Dec 05, 2013 at 07:46:36PM -0800, Ross Boylan wrote:
On Tue, Dec 03, 2013 at 07:14:48PM -0500, Jiqiang Guo wrote:
Good finding. Thanks a lot. So I will change those two lines to
sss <- lapply(tidx[[par]], get_kept_samples2, object@sim)
sss <- do.call(cbind, sss)
-- Jiqiang
Adding back the deleted dim-setting line seems to work:
fun1 <- function(par) {
sss <- lapply(tidx[[par]], get_kept_samples2, object@sim)
sss <- do.call(cbind, sss)
# essential for 2 dimensional parameters
dim(sss) <- c(sum(n_kept), object@sim$dims_oi[[par]])
dimnames(sss) <- list(iterations = NULL)
sss
}
BTW, on a quick test the code is a bit over 10x faster than the current production code for 2-dimensional coefficients.
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.