| accuracy_mtl | R Documentation |
Pooled fraction of correctly classified non-NA cells, for
orthoMTL fits in classification mode (logistic = TRUE).
A cell is positive when its true label is > 0 and predicted
positive when its score is > 0. This works for both the
\{-1, +1\} encoding the solver optimises and a \{0, 1\}
encoding, and for raw "link" scores or "response"
probabilities (threshold 0.5 corresponds to a link of 0... see note).
accuracy_mtl(true.label.mat, pred.label.mat, threshold = 0)
true.label.mat |
A numeric matrix of true responses
( |
pred.label.mat |
A numeric matrix of predictions of the same
dimensions (as produced by |
threshold |
Decision threshold applied to |
A single numeric value in [0, 1] (higher is better).
auc_mtl, cindex_mtl
set.seed(1)
Y <- matrix(sample(c(-1, 1), 30, replace = TRUE), 10, 3)
P <- Y * abs(matrix(rnorm(30), 10, 3)) # mostly correct signs
accuracy_mtl(Y, P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.