Description Usage Arguments Details Value
View source: R/predictResponseFromWeightedAverage.R
Process a matrix of predicted responses and form a column-wise estimate based on (un)weighted averaging.
1 | predictResponseFromWeightedAverage(preds, weights, .parallel, ...)
|
preds |
is matrix of predicted classes |
weights |
is a vector of length equal to |
.parallel |
is a boolean flag determining whether to work
across columns of |
... |
additional arguments to pass to |
Gives the prediction from row(i) in 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.
a vector of length equal to ncol(preds)
containing the
estimated response for each column of preds
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.