-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest-err.les
34 lines (29 loc) · 960 Bytes
/
test-err.les
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# title: A test script for lesim-mode
# author: Stefano Ghirlanda
# date: 2023-05-03
# summary: Just to show off. Contains errors and won't run.
n_subjects = 1 # end of line comment
mechanism = sr
behaviors = response, no_response
stimulus_elements = background, stimulus, reward
start_v = 0.1
start_w = 0.1
alpha_v = 0.1
u = reward:10, default:0
beta = 1x # invalid value
###
Highlighted typos in @phase blocks:
###
@phase training stop: stimulus==500
START_TRIAL stimulus,background | reponse: REWARD(.5) | NO_REWARD
REWARD rewar | START_TRIAL
NO_REWARD background | START_TRIA
# these are wrong:
@run xtraining
@run my_run xtraining
# these are correct:
@run training
@run my_run training
@figure v(stimulus->response)
@subplot 111 {'xlabel':'exposures to stimulus', 'ylabel':'v-value'}
@vplot stimulus->response