precision: Precision

View source: R/metrics.R

precisionR Documentation

Precision

Description

Computes precision (aka positive predictive value) from a confusion matrix, see confusion. Precision is defined as TP/(TP + FP), where TP are true positives and FP are false positives. If TP + FP = 0, 0 is returned.

Usage

precision(confusion)

Arguments

confusion

Confusion matrix as obtained from confusion

Value

A numeric in [0,1].


causalDisco documentation built on May 12, 2022, 9:05 a.m.