Calculates the loss of a classifer using a discrete loss matrix, where each observation may be weighted as desired.
1 2 |
truthLabels |
A factor vector containing the true classes for each instance (or observation) |
predClass |
A factor vector containing the predicted classes for each instance (or observation) |
lossMat |
A object of class |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.