View source: R/har_stream_eval.R
| evaluate.har_stream_eval | R Documentation |
Computes trace-level summaries and, when a reference label vector is provided, combines them with the standard Harbinger hard evaluation.
## S3 method for class 'har_stream_eval'
evaluate(obj, detection, reference = NULL, probability_threshold = NULL, ...)
obj |
A |
detection |
Trace data frame returned by |
reference |
Optional logical or numeric event reference aligned with the observation index. |
probability_threshold |
Optional DP threshold used to derive an additional filtered detection vector. |
... |
Unused. |
A named list with per-observation trace metrics and aggregate summaries. The returned list always includes:
summary: aggregate DP and DL statistics;
by_observation: the original trace table.
When reference is provided, it also includes:
hard_metrics: standard final binary evaluation using har_eval().
When probability_threshold is provided, it also includes:
threshold: the threshold value;
threshold_detection: logical vector derived from DP filtering.
When both reference and probability_threshold are provided, it also
includes:
threshold_hard_metrics: hard evaluation after DP thresholding.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.