event_col: Logic for 'event_level' in custom 'yardstick' metrics.

View source: R/evaluator-lib-utils.R

event_colR Documentation

Logic for event_level in custom yardstick metrics.

Description

Logic for event_level in custom yardstick metrics.

Usage

event_col(xtab, event_level)

Arguments

xtab

Frequency table from table()

event_level

A single string. Either "first" or "second" to specify which level of truth to consider as the "event". This argument is only applicable when estimator = "binary". The default uses an internal helper that defaults to "first".

Value

Name of factor level to use as the "event" when computing evaluation metrics.


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.