Description Usage Arguments Value See Also Examples
Compute the class predicted for a given threshold.
1 2 | compute_predict_class(data, threshold = 0.5, prob = "prob",
pos_class = "Yes", neg_class = "No")
|
data |
A dataframe with the probabilities computed for the positive class. |
threshold |
A numeric value (default = 0.5) to decide if an observation will be affected to the positive 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 class predicted.
compute_metrics
,
compute_optimal_threshold
, objective_threshold
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.