View source: R/score_classification.R
score_classification | R Documentation |
This function takes the observed and predicted values and computes metrics that are found in 'PyCaret' such as: 'Accuracy', 'AUC', 'Recall', 'Prec.', 'F1', 'MCC', and 'Kappa'.
score_classification(
observed,
predicted,
metrics = c("Accuracy", "AUC", "Recall", "Prec.", "F1", "MCC", "Kappa")
)
observed |
A vector of the observed results. |
predicted |
A data.frame or vector object that is the same number of rows or length as the length of observed values. |
metrics |
A character vector of the metrics to be fitted. This is defaulted to be the metrics from 'PyCaret'. |
A vector or data.frame of the methods and metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.