Skip to content
Back to formatted view

Raw Message

Message-ID: <021cdb$5fm6gl@ironport10.mayo.edu>
Date: 2017-01-07T20:15:57Z
From: Terry Therneau
Subject: which parallel routine

I'm looking for advice on which of the parallel systems to use.

Context: maximize a likelihood, each evaluation is a sum over a large number of subjects (>5000) and each of those per subject terms is slow and complex.

If I were using optim the context would be
  fit <- optim(initial.values, myfun, ?.)
  myfun <- function(params) {
       ? Do some initial setup?
       temp <- apply-in-parallel(id,  per-subject-eval-fun, p=params)
       unlist(temp)
}

  The use of mcapply seems like there would be a lot of overhead starting and stopping threads.   But none of the tutorials I've found addresses this particular question.  Both direct answers and pointers to other docs would be welcome.

Terry T.



	[[alternative HTML version deleted]]