successRatio: Extracts the success ratio of a truth table

Description Usage Arguments Value Author(s) See Also

View source: R/successRatio.R

Description

Function successRatio extracts the success ratio (weighted ratio of samples correctly classified vs total samples) for each class and overall. The value is weighted to take into account the possible different sample number between classes.

Usage

1
2
3
successRatio(classes,
             tt,
             ClassWeights)

Arguments

tt

The truth table from which the success ratio should have to be extracted.

classes

Vector containing the class label of each sample.

ClassWeights

Vector containing the weights of each class

Value

A numeric value showing the ratio of the samples that are correctly associated according to their real classes.

Author(s)

Francesc Fernandez, francesc.fernandez.albert@upc.edu

See Also

Validation


MAIT documentation built on Nov. 8, 2020, 5:43 p.m.