fmeasure: Fmeasure of precision-recall

Description Usage Arguments Value Examples

View source: R/fmeasure.R

Description

The function calculates fmeasure for a given beta of a precision-recall curve

Usage

1
fmeasure(recall, precis, beta = 1)

Arguments

recall

numeric array

precis

numeric array

beta

numeric value, default is 1

Value

fmeasure Numeric value

Examples

1
2
3
4
5
labels <- c(rep(0,10))
labels[c(1,3,5)] <- 1 
scores <- 10:1
prc <- get_prc(scores, labels)
fm <- fmeasure(prc[,1], prc[,2])

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.