% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metrics.R
\name{auc_mtl}
\alias{auc_mtl}
\title{Area Under the ROC Curve for Multi-Task Predictions}
\usage{
auc_mtl(true.label.mat, pred.label.mat)
}
\arguments{
\item{true.label.mat}{A numeric matrix of true responses
(\code{n x numTasks}). \code{NA} cells are ignored.}

\item{pred.label.mat}{A numeric matrix of predictions of the same
dimensions (as produced by \code{\link{predict.orthoMTL}}).}
}
\value{
A single numeric value in \code{[0, 1]} (higher is better;
  0.5 = random).
}
\description{
Pooled AUC over every non-\code{NA} cell, computed via the
Mann-Whitney U statistic (with 0.5 credit for ties), for
\code{orthoMTL} fits in classification mode. The positive class is
defined by true label \code{> 0}. AUC is invariant to monotone
transforms, so raw \code{"link"} scores and \code{"response"}
probabilities give identical results.
}
\examples{
set.seed(1)
Y <- matrix(sample(c(-1, 1), 30, replace = TRUE), 10, 3)
P <- Y + matrix(rnorm(30), 10, 3)
auc_mtl(Y, P)
}
\seealso{
\code{\link{accuracy_mtl}}, \code{\link{cindex_mtl}}
}
