-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest-run.les
36 lines (30 loc) · 1.02 KB
/
test-run.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
35
36
# title: A test script for lesim-mode
# author: Stefano Ghirlanda
# date: 2023-05-24
# summary: Run it with C-c C-c.
n_subjects = 1000
mechanism = a
behaviors = response, no_response
stimulus_elements = background, stimulus, reward
start_v = 0.1
start_w = 0.1
alpha_v = 0.1
alpha_w = 0.1
u = reward:10, default:0
beta = 1
@phase training1 stop: REWARD==100
START_TRIAL stimulus | response: REWARD | NO_REWARD
REWARD reward | @omit_learn, START_TRIAL
NO_REWARD background | @omit_learn, START_TRIAL
@phase training2 stop: REWARD==100
START_TRIAL stimulus | response: REWARD | NO_REWARD
REWARD reward | @omit_learn, START_TRIAL
NO_REWARD background | @omit_learn, START_TRIAL
@run myrun training1, training2
xscale: stimulus
subject: average
@figure v(stimulus->response)
@subplot 111 {'xlabel':'exposures to stimulus', 'ylabel':'v-value'}
@vplot stimulus->response
@wplot stimulus
@legend