You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**training stage**: Select the training stage parameters. These parameters can be saved in **TrainingStagePar.json** through "**Save training**" button. They are task dependent.
156
157
-**randomness**: There are **exponential** and **even distribution** available. This random generator will be applied to generate **Block length**/**ITI**/**Delay period**.
157
158
-**L(s)**: The left valve open time. The **L(s)** and **L(ul)** are dependent on each other, and the relationship is determined by the water calibration.
@@ -208,6 +209,37 @@ To configure automatic updates consistent with the [update protocol](https://git
208
209
-**Early licking**: Statistics of early licking rate in different behavior epochs.
209
210
-**Double dipping**: Double dipping statistics in different behavior epochs and conditions.
210
211
212
+
### How training parameters define the task
213
+
214
+
#### Block structure
215
+
1.**Uncoupled tasks (Uncoupled Baiting or Uncoupled Without Baiting)**
([Grossman et al. 2022](https://www.sciencedirect.com/science/article/pii/S0960982221016821))
218
+
- The actual reward probabilities are controled by the parameter `UncoupledReward` (typically {0.1, 0.4, 0.7}).
219
+
- "Baiting" = if an unchosen action would have been rewarded, the reward was delivered upon the next choice of
220
+
that alternative.
221
+
- See [code here](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/blob/main/src/foraging_gui/reward_schedules/uncoupled_block.py).
222
+
223
+
2.**Coupled tasks (Coupled Baiting or Coupled Without Baiting)**
224
+
- The reward probabilities on both sides ($p_L$ and $p_R$) change together in an anticorrelated manner.
225
+
- $p_L + p_R$ is fixed at `BaseRewardSum`, whereas their ratio is chosen from a "ratio pool" that consists of the first `RewardPairsN` pairs in a certain `RewardFamily`. There are four preset families:
226
+
- Family 1: {8:1, 6:1, 3:1, 1:1}
227
+
- Family 2: {8:1, 1:1}
228
+
- Family 3: {1:0, 9:1, 8:2, 7:3, 6:4, 5:5}
229
+
- Family 4: {6:1, 3:1, 1:1}
230
+
231
+
For example,
232
+
-`RewardFamily` = 3, `RewardPairsN` = 1, `BaseRewardSum` = 0.8 (typical STAGE_1_WARMUP stage) gives you a ratio pool with only one ratio {1:0} and two possible $p_L$, $p_R$ pairs: [0.8, 0.0], [0.0, 0.8]
233
+
-`RewardFamily` = 1, `RewardPairsN` = 4, `BaseRewardSum` = 0.45 (typical GRADUATED stage) gives you a ratio pool of {8:1, 6:1, 3:1, 1:1} and seven possible $p_L$, $p_R$ pairs: [0.4, 0.05], [0.39, 0.06], [0.34, 0.11], [0.225, 0.225], [0.11, 0.34], [0.06, 0.39], [0.05, 0.4]
234
+
- The consecutive blocks will never have the same better side (or have a ratio of 1:1 at the same time). For example, [0.4, 0.05] will never follow [0.39, 0.06], and [0.225, 0.225] will never follow another [0.225, 0.225].
235
+
- Block lengths were drawn from a truncated exponential distribution controled by `block_min`, `block_max`, and `block_beta` (see [code](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/blob/main/src/foraging_gui/reward_schedules/test_truncexp.py)).
236
+
- "Baiting" is the same as above.
237
+
- See [code here](https://github.com/AllenNeuralDynamics/dynamic-foraging-task/blob/ba12c335daae87144585b70325b048786188cd4d/src/foraging_gui/MyFunctions.py#L552).
238
+
239
+
#### Trial structure
240
+
Here is an overview of the trial structure using a rewarded trial, an unrewarded trial, and an ignored trial as examples.
1. In the main dialog, press `Auto Train` button <imgsrc="https://github.com/AllenNeuralDynamics/dynamic-foraging-task/assets/24734299/836a4432-b1b2-4f92-9c66-2441a9d77a82"width="150"> or `Ctrl + Alt + A` to open the Automatic Training dialog
213
245
> [!IMPORTANT]
@@ -288,10 +320,6 @@ Data for each session is saved as a JSON file with the following files:
288
320
-**goCue_start_time**: 'The go cue start time'
289
321
-**reward_outcome_time**: 'The reward outcome time (reward/no reward/no response)'
290
322
291
-
### Training paramters
292
-
Here is an overview of the trial structure using a rewarded trial, an unrewarded trial, and an ignored trial as examples.
0 commit comments