read_policyx | R Documentation |
read a .policyx file created by SARSOP and return alpha vectors and associated actions.
read_policyx(file = "output.policyx")
file |
name of the policyx file to be read. |
a list, first element "vectors" is an n_states x n_vectors array of alpha vectors, second element is a numeric vector "action" of length n_vectors whose i'th element indicates the action corresponding to the i'th alpha vector (column) in the vectors array.
f <- system.file("extdata", "out.policy", package="sarsop", mustWork = TRUE)
policy <- read_policyx(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.