Skip to contents

Retrieve canonical adaptive logs.

Usage

adaptive_get_logs(state)

Arguments

state

Adaptive state.

Value

A named list with four elements:

step_log

A tibble with one row per attempted step.

round_log

A tibble with one row per BTL refit round.

item_log

A list of per-refit item tibbles.

link_stage_log

A tibble with one row per (refit_id, spoke_id) linking summary when linking mode is active.

Details

Returns the canonical adaptive logs as currently held in memory: step_log, round_log, item_log, and link_stage_log. These correspond to step attempts, posterior refit rounds, item-level refit summaries, and per-refit linking summaries.

Examples

state <- adaptive_rank_start(c("a", "b", "c"), seed = 1)
logs <- adaptive_get_logs(state)
names(logs)
#> [1] "step_log"       "round_log"      "item_log"       "link_stage_log"