multilabel_prediction {utiml} | R Documentation |
Create a mlresult object
Description
Create a mlresult object
Usage
multilabel_prediction(
bipartitions,
probabilities,
probability = getOption("utiml.use.probs", TRUE),
empty.prediction = getOption("utiml.empty.prediction", FALSE)
)
Arguments
bipartitions |
The matrix of predictions (bipartition values), only 0 and 1 |
probabilities |
The matrix of probability/confidence of a prediction, between 0..1 |
probability |
A logical value. If |
empty.prediction |
A logical value. If |
Value
An object of type mlresult
Examples
probs <- matrix(
runif(90), ncol=3, dimnames = list(1:30, c("y1", "y2", "y3"))
)
preds <- matrix(
as.numeric(probs > 0.5), ncol=3, dimnames = list(1:30, c("y1", "y2", "y3"))
)
multilabel_prediction(probs, preds)
[Package utiml version 0.1.7 Index]