Shows the exported spectrogram and audio of each sampled event in random
order and records "correct", "incorrect" (plus the true species) or
"unsure". Every save is written immediately to validation_results.csv, so
you can stop at any time and continue later.
Usage
pam_validate(
cfg,
run_id = cfg$birdnet$run_id,
reviewer = pam_or(cfg$validation$reviewer, ""),
show_confidence = isTRUE(cfg$validation$show_confidence),
lang = NULL
)Arguments
- cfg
A
pam_configobject.- run_id
Detection run.
- reviewer
Name pre-filled in the app.
- show_confidence
Show the model's confidence while reviewing. Hidden by default (
validation$show_confidence) to avoid biasing the reviewer.- lang
Interface language code (for example
"en");NULLchooses it aspam_train_app()does. Translations live ininst/i18n/<code>.yml.
Examples
if (interactive() && nzchar(Sys.which("ffmpeg"))) {
ex <- pam_example_project()
res <- suppressMessages(pam_scan_audio(ex$cfg))
proc <- suppressMessages(pam_process_detections(ex$cfg))
new <- suppressMessages(pam_validation_draw(ex$cfg, strategy = "random", n = 5))
out <- suppressMessages(pam_validation_export(ex$cfg)) # clips and spectrograms to review
pam_validate(ex$cfg)
}
