Learn R Programming

MAIT (version 1.6.0)

successRatio: Extracts the success ratio of a truth table

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

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.

See Also

Validation