Skip to contents

This function extracts the classification metrics. It takes as input (evaldata_params) and an optional risk level for the alpha risk (alpha_risk). It retrieves the p-values from the identity term and computes the binary classification result by thresholding with the alpha risk level. It then computes the classification metrics using compute_metrics_summary function separately for each parameter value as well as for the aggregated results.

Usage

get_ml_metrics_obj(
  evaldata_params,
  alpha_risk = 0.05,
  col_param = "description"
)

Arguments

evaldata_params

Identity term of the evaluation object.

alpha_risk

parameter that sets the threshold for alpha risk level (default 0.05).

col_param

parameter that sets the column name for the parameter (default "description").

Value

A list containing separate data frames for classification metrics by parameter value and for aggregated classification metrics.