score_classification {stressor}R Documentation

Score Function for Binary Classification

Description

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'.

Usage

score_classification(
  observed,
  predicted,
  metrics = c("Accuracy", "AUC", "Recall", "Prec.", "F1", "MCC", "Kappa")
)

Arguments

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'.

Value

A vector or data.frame of the methods and metrics.


[Package stressor version 0.2.0 Index]