Run a detector against positives and generated negatives
Source:R/00-autotype-functions.R
build_autotype_results.RdScores detector on the real positives P and on negatives generated at
each mutation tier, returning one tidy table. Used to build the
human-readable artifacts in data-types/.
Usage
build_autotype_results(
detector,
P,
tiers = c("S1", "S2", "S3", "SP"),
n_per_positive = 20,
p = 0.5,
seed = 514,
threshold = 0.5
)Arguments
- detector
A function taking a character vector and returning a logical (or numeric score) vector.
- P
A character vector of positive examples.
- tiers
Mutation tiers to include.
- n_per_positive
Mutants attempted per positive per tier.
- p
Per-character mutation probability.
- seed
Integer seed.
- threshold
Score threshold used when
detectorreturns numeric.