meta from log
meta_from_log(parameters, log_dir = ".", metafile = paste0(log_dir, "/meta.csv"))
parameters | a data.frame with the desired parameter values as given in metafile |
---|---|
log_dir | path to log directory |
metafile | path to metafile index, assumed to be meta.csv in log_dir |
a data.frame with the rows of the matching metadata.
# NOT RUN { source(system.file("examples/fisheries-ex.R", package = "sarsop")) log = tempfile() alpha <- sarsop(transition, observation, reward, discount, precision = 10, log_dir = log, log_data = log_data) ## Get metadata for all logged solutions matching the desired query meta <- meta_from_log(parameters = data.frame(model = "ricker", r = 0.1), log_dir = log) alphas <- alphas_from_log(meta, log_dir = log) fs <- f_from_log(meta) models <- models_from_log(meta, log_dir = log) # }