rl_define_reinforcements_array | R Documentation |
Define Reinforcements Array for Tracking Cues in RL Agent's Environment
rl_define_reinforcements_array(reinforcement_input, num_episodes, num_trials)
reinforcement_input |
A list of reinforcements where each element contains a data frame with columns 'onset', 'offset', 'magnitude', and 'trial' describing, respectively, the episode number a reward presentation begins; the episode number the reward presentation ends; the magnitude of the reward; the trials the rewards occur on. |
num_episodes |
(numeric) The number of episodes per trial. |
num_trials |
(numeric) The number of trials to simulate. |
A three-dimensional array tacking what reinforcements are delivered in each episode across all simulated trials.
rl_define_reinforcements_array( list( one = data.frame( onset = 8, offset = 8, magnitude = 1, trial = 1:100 ) ), num_episodes = 10, num_trials = 100 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.