calc_performance: Calculate epitope classification performance indices

View source: R/calc_performance.R

calc_performanceR Documentation

Calculate epitope classification performance indices

Description

This function is used to calculate several distinct BINARY classification performance indicators. NA values are not considered in the calculations.

Usage

calc_performance(
  truth,
  pred,
  prob = NULL,
  posValue = 1,
  negValue = -1,
  ret.as.list = FALSE
)

Arguments

truth

vector of reference values

pred

vector of predicted values

prob

optional, vector of predicted probabilities

posValue

value that indicates the "positive" class.

negValue

value that indicates the "negative" class.

ret.as.list

optional, should the result be returned as a list (if TRUE the routine also returns the tpr and fpr vectors used to calculate AUC, if a prob vector is passed.)

Value

list containing several performance indicators

Author(s)

Felipe Campelo (f.campelo@aston.ac.uk)


fcampelo/epitopes documentation built on April 22, 2023, 12:23 a.m.