balanced_accuracy: Balanced Accuracy

View source: R/balanced_accuracy_class.R

balanced_accuracyR Documentation

Balanced Accuracy

Description

Balanced Accuracy is the average proportion of correctly classified samples across all groups.

Usage

balanced_accuracy(...)

Arguments

...

Additional slots and values passed to struct_class.

Value

A balanced_accuracy object. This object has no output slots.

Inheritance

A balanced_accuracy object inherits the following struct classes:

⁠[balanced_accuracy]⁠ >> ⁠[metric]⁠ >> ⁠[struct_class]⁠

Examples

M = balanced_accuracy()

D = iris_DatasetExperiment()
XCV = kfold_xval(folds=5,factor_name='Species') *
      (mean_centre() + PLSDA(number_components=2,factor_name='Species'))
MET = balanced_accuracy()
XCV = run(XCV,D,MET)

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