alphas_from_log

alphas_from_log(meta, log_dir = ".")

Arguments

meta

a data frame containing the log metadata for each set of alpha vectors desired, see meta_from_log

log_dir

path to log directory

Value

a list with a matrix of alpha vectors for each entry in the provided metadata (as returned by sarsop).

Examples

# 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)
# }