Skip to contents

Adaptive results history in build_bt_data() format.

Usage

adaptive_results_history(state, committed_only = TRUE)

Arguments

state

Adaptive state.

committed_only

Use only committed comparisons.

Value

A tibble with columns:

object1

Character item id shown in position A.

object2

Character item id shown in position B.

result

Numeric outcome in {0, 1} where 1 means object1 wins.

Details

Converts adaptive step outcomes into the three-column format used by build_bt_data() (object1, object2, result). With committed_only = TRUE, only committed steps (pair_id not missing) are retained. This preserves the transactional invariant that invalid steps do not contribute to inferred comparisons.

Examples

state <- adaptive_rank_start(c("a", "b", "c"), seed = 1)
adaptive_results_history(state)
#> # A tibble: 0 × 3
#> # ℹ 3 variables: object1 <chr>, object2 <chr>, result <dbl>