Skip to content

fix: sample learn_to_choose blocks Sequential for clean alternation#560

Open
galenlynch wants to merge 1 commit into
mainfrom
fix-single-site-sequential-blocks
Open

fix: sample learn_to_choose blocks Sequential for clean alternation#560
galenlynch wants to merge 1 commit into
mainfrom
fix-single-site-sequential-blocks

Conversation

@galenlynch
Copy link
Copy Markdown
Member

learn_to_choose has only two blocks, (0.9, 0.1) and (0.1, 0.9). Random sampling could draw the same reward configuration twice in a row, whereas the stage is meant to alternate A-rich <-> B-rich. Switch to Sequential so the reversal order is deterministic; block length stays random (block_length_exp_mean) so the animal still can't anticipate the timing. The probability_grid_* stages keep Random (random walk over 13 blocks).

learn_to_choose has only two blocks, (0.9, 0.1) and (0.1, 0.9). Random
sampling could draw the same reward configuration twice in a row, whereas
the stage is meant to alternate A-rich <-> B-rich. Switch to Sequential so
the reversal order is deterministic; block length stays random
(block_length_exp_mean) so the animal still can't anticipate the timing.
The probability_grid_* stages keep Random (random walk over 13 blocks).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@galenlynch galenlynch requested a review from bruno-f-cruz June 1, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant