Displaying 1 result from an estimated 1 matches for "cnj_4".
Did you mean:
cnj_2
2010 Oct 04
0
Syntax for Rmpi cf multicore
...hich I use
with mclapply like this:
out <- mclapply(subsets, lr.gbm, mc.cores = 6, trees=trees, folds=folds,
minob=minob)
subsets is simply a vector that looks like this:
[1] "COB_2" "CNJ_2" "COB_3" "CNJ_3" "COB_4" "CNJ_4"
and that works more or less fine to produce a list of length 6 which
I've named with the elements of the subsets vector.
names(out) <- subsets
Now, when I use mpi.apply, I make the trees, folds and minob available
to all slaves thus:
mpi.spawn.Rslaves(nslaves=6)
mpi.bcast.Ro...