Skip to contents

Detects the format of prediction samples in a data frame.

Usage

detect_prediction_format(df)

Arguments

df

A data frame to check

Value

Character string: "nested", "wide", "long", or "none"

Examples

if (FALSE) { # \dontrun{
format <- detect_prediction_format(preds)
if (format == "wide") {
  preds <- predictions_from_wide(preds)
}
} # }