calculate: Calculate metric

calculate,AUC-methodR Documentation

Calculate metric

Description

Calculate metric

Usage

## S4 method for signature 'AUC'
calculate(obj, Y, Yhat)

## S4 method for signature 'balanced_accuracy'
calculate(obj, Y, Yhat)

## S4 method for signature 'r_squared'
calculate(obj, Y, Yhat)

Arguments

obj

a metric object

Y

the true values/group labels

Yhat

the predicted values/group labels

Value

a modified metric object

Examples

MET = metric()
calculate(MET)

computational-metabolomics/structtoolbox documentation built on July 2, 2024, 10:46 p.m.