Parameters¶
A simulation uses a number of parameters, for example how many subjects that
should be simulated. Therefore, in order
to run a simulation, a number of parameter values must be set.
Use the equal sign to set the value of a parameter.
For example, to tell Learning Simulator to simulate 10 subjects, set the parameter n_subjects
to the value 10
like so:
n_subjects = 10
Below follows a description of each of the available parameters in Learning Simulator· For a detailed description, syntax, and examples, click the parameter name.
In the tables below, “element” means stimulus element.
Simulation parameters¶
Parameter |
Description |
Default/ Required |
Possible values |
Used in
mechanisms
|
---|---|---|---|---|
Learning rate
for v-values
|
1 |
- A single value
- One value per element-behavior pair
|
All except
|
|
Learning rate
for vss-values
|
1 |
- A single value
- One value per element-element pair
|
|
|
Learning rate
for w-values
|
1 |
- A single value
- One value per stimulus element
|
|
|
The behavior
repertoire
|
Required |
List of behavior names |
All except
|
|
Cost for
behaviors
|
0 |
- A single value
- One value per behavior
|
All except
|
|
Exploration |
1 |
- A single value
- One value per element-behavior pair
|
All except
|
|
Discount factor |
0 |
A number between 0 and 1 |
|
|
Reinforcement |
0 |
- A single value
- One value per stimulus element
|
|
|
Learning mechanism |
Required |
|
||
Genetic
predisposition
|
0 |
- A single value
- One value per element-behavior pair
|
All except
|
|
Number of
subjects
|
1 |
Positive integer |
All |
|
Random seed |
None |
Any string (typically integers are used) |
All |
|
Possible stimuli
per behavior
|
All stimuli
possible for
each behavior
|
List of
behavior:element and/orbehavior:[element1,element2,...] |
All except
|
|
Stimulus elements |
Required |
List of stimulus element names |
All |
|
Intial v-values |
0 |
- A single value
- One value per element-behavior pair
|
All except
|
|
Initial vss-
values
|
0 |
- A single value
- One value per element-element pair
|
|
|
Initial w-values |
0 |
- A single value
- One value per stimulus element
|
|
|
Memory trace |
0 |
A number between 0 and 1 |
|
|
Reinforcement |
0 |
- A single value
- One value per stimulus element
|
All except
|
Postprocessing parameters¶
Parameter |
Description |
Default/ Required |
Possible values |
Used in
commands
|
---|---|---|---|---|
Plot/export cumulative values |
|
-
on -
off |
|
|
Exported file |
Required in export commands |
a valid file name
with or without path
|
Export
commands
|
|
How to match
compound stimuli
to
@nplot |
|
-
subset -
exact |
|
|
Which
@run command to use
|
The last
@run |
string without space
|
All |
|
The x-axis scale |
|
-
all - a stimulus element
- a behavior
- stimulus->behavior->stimulus->…
- behavior->stimulus->behavior->…
|
All |
|
How to match
compound stimuli
to
xscale |
|
-
subset -
exact |
All |
|
Which phase(s)
to use
|
|
-
all - list of phase labels
|
All |
|
Which subject(s)
to use
|
|
-
average , all -
all - one-based index
\(\le\)
n_subjects |
All |