Skip to content

cued expectations - #38

Merged
k1o0 merged 8 commits into
mainfrom
cued_expectations
Feb 18, 2026
Merged

k1o0 merged 8 commits into
mainfrom
cued_expectations

Conversation

@bimac

@bimac bimac commented Feb 26, 2025 •

Copy link
Copy Markdown
Contributor

We (the mesoscope wg) need your help with a task modification. For the project cortexlab_cuedexpectations (which uses the samuel_cuedBiasedChoiceWorld task), we would like to have a random subset of trials (e.g. 25%) in which the audio cue is not played at all, but everything else remains the same.
Currently the state "play tone" in the state machine code is deterministic, i.e. it triggers a 'play_tone' event on every trial. If I understand correctly, to make this probabillistic, we would need to mofidy the state machine code so that the 'play_tone' event is triggered only if the random draw is successful (or alternatively we put the volume of the sound to 0 when the draw isn't succesful). Ideally the probability of this draw would be parametrized in the task parameters.
I am not sure how to do this in practice so your help would be super appreciated!

@bimac bimac changed the title clean-up, addition of TrialDataModel, argument parsing, ruff cued expectations Feb 26, 2025
@bimac bimac self-assigned this Feb 26, 2025
@bimac
bimac requested review from k1o0 and oliche March 6, 2025 13:07
@bimac
bimac marked this pull request as ready for review March 6, 2025 13:08
@k1o0
k1o0 merged commit 60b9117 into main Feb 18, 2026
1 check passed
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.

2 participants