precision_validation_sample: Extract a sample of edges to validate precision

Description Usage Arguments

View source: R/precision_validation.r

Description

Makes it easier to inspect whether matches past a certain similarity threshold (positives) are correct matches (true positives)

Usage

1
2
3
4
5
6
7
precision_validation_sample(
  g,
  min_weight,
  n = 100,
  min_daydiff = 0,
  max_daydiff = 6
)

Arguments

g

The RNewsflow edgelist

min_weight

The weight threshold for when an edge should be considered a match

n

The number of matches to sample

min_daydiff

The minimum number of days between the event and the news article

max_daydiff

The maximum number of days between the event and the news article


maskedforreview/gtdnews documentation built on April 12, 2021, 11:53 a.m.