View source: R/performance_measures.R
Rec | R Documentation |
'Rec()' computes the Recall, also known as Sensitivity or TPR (True Positive Rate), between the output of a classification model and the actual values of the target.
Rec(ct, multi.class = "macro")
ct |
Confusion Matrix. |
multi.class |
Should the results of each class be aggregated, and how? Options: "none", "macro", "micro". (Defaults: "macro"). |
TPR (a single value).
y <- c(rep("a",3),rep("b",2))
y_pred <- c(rep("a",2),rep("b",3))
ct <- table(y,y_pred)
Rec(ct)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.