accuracy: Calculate accuracy

Description Usage Arguments Value Examples

Description

This function calcuates the fraction of the time that the classifier correctly identifies true and false values.

Usage

1
accuracy(truth, pred)

Arguments

truth

A logical vector of true values

pred

A logical vector of values predicted by the model

Value

numeric value

Examples

1
2
3

mdlincoln/modeltests documentation built on May 22, 2019, 4:14 p.m.