recall {bstrl} | R Documentation |
Calculate the recall of estimated links relative to true links
Description
Calculate the recall of estimated links relative to true links
Usage
recall(sl.est, sl.true)
Arguments
sl.est |
streaminglinks object representing link estimates |
sl.true |
streaminglinks object representing true links |
Value
The recall of the estimated links.
Examples
data(geco_small)
data(geco_small_result)
sl.true <- fromentities(geco_small[[1]]$entity, geco_small[[2]]$entity,
geco_small[[3]]$entity, geco_small[[4]]$entity)
posterior <- extractlinks(geco_small_result)
# Compare one posterior sample to previously computed known truth
class(sl.true)
recall(posterior[[42]], sl.true)
[Package bstrl version 1.0.2 Index]