precisionRecall: Calculate precision and recall given pairs, model prediction...

Description Usage Arguments Value

View source: R/forEvaluation.R

Description

Calculate precision and recall given pairs, model prediction and true match status

Usage

1
precisionRecall(allPairwise, linkCol, matchColNum)

Arguments

allPairwise

name of data frame containing all pairwise comparisons. This needs to have at least two columns, one representing whether the pair is linked in the given clustering, and one representing the true match/non-match status. These are enumerated in the next two parameters.

linkCol

name of column in 'allPairwise' with links, input as character, e.g. "minimax0.4"

matchColNum

column number of column in 'allPairwise' indicating true match/non-match status

Value

list with two items, 'precision' and 'recall'


xhtai/clusterTruster documentation built on May 22, 2020, 10:56 a.m.