rl_define_stimuli_array | R Documentation |
Define Cue Array for Tracking Cues in RL Agent's Environment
rl_define_stimuli_array(stimulus_input, num_episodes, num_trials)
stimulus_input |
A list of of stimuli where each element contains a data frame with columns 'onset', 'offset', 'magnitude', and 'trial' describing, respectively, the episode number a stimulus presentation begins; the episode number the stimulus presentation ends; the magnitude (saliency of a stimulus) of the stimulus; the trials the stimuli occur. |
num_episodes |
(numeric) The number of episodes per trial. |
num_trials |
(numeric) The number of trials to simulate. |
A three-dimensional array tacking what stimuli are present in each episode across all simulated trials.
rl_define_stimuli_array( list( one = data.frame( onset = 3, 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.