Description Usage Arguments Value Examples
View source: R/rl_log_progress.R
Function will record Q values during the model update. These values will be used by another function Function was developed to help to estimate best control parameters during optimisation process
1 | rl_log_progress(x, states, actions, control)
|
x |
|
states |
|
actions |
|
control |
|
dataframe with log of RL model reward sequences during model update
1 2 3 4 5 6 7 8 9 10 11 12 | # retrieve RL model Q values progress
library(ReinforcementLearning)
library(dplyr)
library(magrittr)
library(lazytrade)
data(data_trades)
x <- data_trades
states <- c("tradewin", "tradeloss")
actions <- c("ON", "OFF")
control <- list(alpha = 0.7, gamma = 0.3, epsilon = 0.1)
rl_log_progress(x = x,states = states, actions = actions, control = control)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.