confusion | R Documentation |
This function calculates the confusion matrix.
confusion(truth_name, prob_name, threshold = 0.5)
truth_name |
('character(1L)') Character containing the name of the vector of 0-1-values encoded as integer or numeric. |
prob_name |
('character(1L)') Character containing the name of the vector of probabilities. |
threshold |
('numeric(1L)') Threshold used to transform probabilities into classes (default = 0.5). |
Confusion matrix.
Daniel S.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.