Skip to contents

load_trial_log() reopens a TrialLog from a directory written by an optimizer's log_dir or by TrialLog$new(log_dir = ).

Usage

load_trial_log(log_dir)

Arguments

log_dir

Path to the log directory.

Value

A TrialLog.

Examples

dir <- file.path(tempdir(), "load-trial-log-example")
log <- TrialLog$new("my-search", log_dir = dir)
log$add_trial(create_trial("my-search", params = list(k = 2L)))

restored <- load_trial_log(dir)
restored$as_tibble()[, c("trial_id", "status")]
#> # A tibble: 1 × 2
#>   trial_id                     status 
#>   <chr>                        <chr>  
#> 1 trial_20260930_174410_e01i28 pending