February 2020
Intermediate to advanced
328 pages
8h 19m
English
Let's create an environment that represents our problem of cliff walking:
env = makeEnvironment("cliff.walking")env
The following screenshot shows the description of the cliff walking environment:

# Creating the function to query the environmentsequences <- function(iter,env){ actions <- env$actions data <- data.frame(matrix(ncol = 4, nrow = 0)) colnames(data) <- c("State", "Action", "Reward","NextState") env$reset() ...Read now
Unlock full access