Replies: 4 comments 12 replies
-
This is timely; the next version of mcp did already switch to post-sampling computation of log-likelihoods. So it should be possible to do it quite efficiently. I'll look into it. But maybe the problem is your memory limit. For this fit, my laptop peaked at 2 GB of RAM usage over and above base R/Rstudio. Running with 3xdata, it maxed at 6GB, including everything. If you're on Windows, have you checked |
Beta Was this translation helpful? Give feedback.
-
Yes, try removing rows from fit$mcmc_loglik. I don't think loo.mcpfit takes
any other input in mcp v0.3. (will from v0.4 onwards)
…On Mon, Mar 15, 2021, 22:43 mattmoo ***@***.***> wrote:
That could be an option, in the interim, would it be as simple as removing
however many rows from the mcmc tables in the mcpfit object? Or maybe
there are other fields that need adjusting?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#109 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK7NOJAD6AA4K4CZHW5U7LTDZ5OVANCNFSM4ZBHRQ7Q>
.
|
Beta Was this translation helpful? Give feedback.
-
I have used these functions, which are butchered versions of yours (
|
Beta Was this translation helpful? Give feedback.
-
I just committed support for pointwise loo to the v0.4 branch. @mattmoo, could you try it out and see if it works as expected? In addition to being slow in it's own right, mcp adds an overhead of ~0.2 seconds for each row of data. This can be optimized down to basically zero upon popular demand. But for now, I prioritize code simplicity. |
Beta Was this translation helpful? Give feedback.
-
I'm running out of memory to perform LOO-CV using
loo
.From the documentation, I gather that defining
loo.function
might lower memory utilisation.Some of it seems straightforward, but there is maybe some difference in terminology where I can't quite figure out what 'draws' is.
Would there be a general function for
mcp.fit
objects compatible withloo.function
? (i.e., such thatloo.mat
andloo.fn
are essentially identical in the example below.Beta Was this translation helpful? Give feedback.
All reactions