predSummary: Summarise prediction performance metrics

View source: R/nestedcv.R

predSummaryR Documentation

Summarise prediction performance metrics

Description

Quick function to calculate performance metrics: accuracy and balanced accuracy for classification; ROC AUC for binary classification; RMSE for regression.

Usage

predSummary(output)

Arguments

output

data.frame with columns testy containing observed response from test folds; predy predicted response; predyp (optional) predicted probabilities for classification to calculate ROC AUC

Value

Vector containing accuracy and balanced accuracy for classification, ROC AUC for binary classification, RMSE for regression.


nestedcv documentation built on Oct. 23, 2022, 5:06 p.m.