Skip to contents

Retrieves pre-computed agnostic model predictions for a set of deliveries. These serve as the baseline expected values before ELO adjustments.

Usage

get_agnostic_baselines(conn, delivery_ids, format = "t20")

Arguments

conn

DBI connection to the database.

delivery_ids

Character vector. The delivery IDs to look up.

format

Character. Match format: "t20", "odi", or "test".

Value

Data frame with columns: delivery_id, agnostic_expected_runs, agnostic_expected_wicket. Missing deliveries get format defaults.

Examples

if (FALSE) { # \dontrun{
conn <- get_db_connection(read_only = TRUE)
baselines <- get_agnostic_baselines(conn, c("64012_India_1_005_03"), "t20")
DBI::dbDisconnect(conn, shutdown = TRUE)
} # }