predictResponseFromWeightedAverage(preds, weights, .parallel, ...)
nrow(preds)
preds
in parallel -- need to register a
parallel backend (e.g. doParallel
, doRedis
) for this to
actually work.weighted.mean
.ncol(preds)
containing the
estimated response for each column of preds
.
preds
weight equal to
weights[i]
. Note that NA
's are not removed. To have
weighted.mean
remove the NA
's pass na.rm=TRUE
to
the function call.