Build an arbitrary loss matrix for discrete classification
1 2 3 4 | lossMatrix(truthLabels, predLabels, lossValues)
## S3 method for class 'lossMat'
print(x, ...)
|
truthLabels |
character vector of truth labels |
predLabels |
character vector of corresponding
predicted labels, which must be the same length as
|
lossValues |
numeric vector of corresponding loss
values, which must be the same length as
|
x |
An object of class |
... |
Additional arguments to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.