prf: Compute precision, recall and F1 score

View source: R/prf.R

prfR Documentation

Compute precision, recall and F1 score

Description

Compute the precision, recall and F1 score using the TP, TP.baseline, FP and FN columns.

Usage

prf(eval.df, use.calls.tp.everywhere = TRUE)

Arguments

eval.df

a data.frame with columns TP, TP.baseline, FP, and FN.

use.calls.tp.everywhere

use the TP count as number of calls matched even for the recall computation

Value

the input data.frame with 3 new columns precision, recall and F1.

Author(s)

Jean Monlong


jmonlong/sveval documentation built on July 31, 2023, 7:50 p.m.