offset_explorer: Function for manually finding offsets between a set of labels...

Description Usage Arguments Value

View source: R/utils_offset_explorer.R

Description

Function for manually finding offsets between a set of labels and Hyfe detections

Usage

1
offset_explorer(alias_id, labels, sounds, prediction_threshold = 0.7)

Arguments

alias_id

The research alias you want to inspect.

labels

A dataframe with analyst labels. Required columns: test (numeric ID for each test labeled); timestamp (numeric timestamp for the cough-second); and label (best label for this cough-second, 1 - 3, using the Hyfe 4-tier system: 1 = a disputable cough, possibly fake; 2 = definitley a cough but barely audible; 3 = a clear authentic cough).

sounds

The sounds dataframe from a hyfe object.

prediction_threshold

Cough prediction score threshold to use for plotting coughs v other noises. Will not change the data.

Value

Nothing. When this function is run, a Shiny app launches that allows the user to identify the offset. You would take note of that offset then use it to build up a dataframe of offsets to pass to hyfe_performance().


hyfe-ai/hyfer documentation built on Dec. 20, 2021, 5:53 p.m.