Description Usage Arguments Value See Also Examples
Compute the optimal threshold for the accuracy or the F1-score.
1 | compute_optimal_threshold(data, metric = c("Accuracy", "F1"))
|
data |
A dataframe with the metrics computed for different thresholds. |
metric |
A string. The metric to maximize. One of: "Accuracy" or "F1". |
A dataframe with the optimal threshold(s).
compute_predict_class
, compute_metrics
,
objective_threshold
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.