View source: R/classification.R
| decode_classification_prediction | R Documentation |
Internal helper for converting probabilities to class labels.
decode_classification_prediction(
probabilities,
class_levels,
classification_type,
threshold = 0.5
)
probabilities |
Numeric vector or matrix of predicted probabilities. |
class_levels |
Class labels. |
classification_type |
Either |
threshold |
Classification threshold for binary classification. |
A factor of predicted class labels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.