roc_auc_embed | R Documentation |
Embedding quality measure.
roc_auc_embed(dm, labels)
dm |
Distance matrix of an embedding. |
labels |
Vector of labels for each observation in the dataset in the same order as the observations in the distance matrix. |
The ROC curve plots the true positive rate vs false positive rate. This function calculates the curve N times, where N is the number of the observations. The label of the Nth observation is set as the positive class and then the other observations are ranked according to their distance from the Nth observation in the output coordinates (lower distances being better). Observations with the same label as the Nth observation count as positive observations. The final reported result is the average over all observations.
Perfect retrieval results in an AUC of 1. For random retrieval gives a value of 0.5.
Area Under the ROC curve, averaged over each observation.
Use of this function requires that the PRROC
package be
installed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.