Description Usage Arguments Value See Also Examples
Compute the following metrics: "Accuracy", "Precision", "Recall", "Specificity", "NPV" and "F1".
| 1 2 | compute_metrics(data, threshold = 0.5, obs = "obs", prob = "prob",
  pos_class = "Yes", neg_class = "No")
 | 
| data | A dataframe with the observed and the predicted class. | 
| threshold | A numerical value or a sequence of numerical values (default = 0.5). The threshold(s) to compute the metrics. | 
| obs | A string (default = "obs"). The column's name of the observed class. | 
| prob | A string (default = "prob"). The column's name of the predicted probabilities. | 
| pos_class | A string (default = "Yes"). How the positive class is coded. | 
| neg_class | A string (default = "No"). How the negative class is coded. | 
A dataframe with the computed metrics.
compute_predict_class,
compute_optimal_threshold, objective_threshold
| 1 2 3 4 5 6 7 8 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.