precision: Calculate precision

Description Usage Arguments Value Examples

Description

This function calcuates the fraction of the items identified by the classifier that actually are in the class.

Usage

1
precision(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.