Learn R Programming

EGAD (version 1.0.3)

fmeasure: Fmeasure of precision-recall

Description

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

Usage

fmeasure(recall, precis, beta = 1)

Arguments

recall
numeric array
precis
numeric array
beta
numeric value, default is 1

Value

fmeasure Numeric value

Examples

Run this code
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])

Run the code above in your browser using DataLab