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 5, 2024, 12:18 p.m.