Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive and behavior #184

Merged
merged 3 commits into from
Nov 21, 2021
Merged

Adaptive and behavior #184

merged 3 commits into from
Nov 21, 2021

Conversation

bartkrekelberg
Copy link
Member

@alexanderATvision noted that if some aspect of behavior (e.g. fixation) is not completed, an adaptive parameter (e.g. staircase) should probably not be updated (even if the subject managed to give a response).

Previously this could only be achieved by setting the behavior (e.g. fixation) to be required and failEndsTrial to true. But if fail does not end the trial a response would have been processed and used to update the adaptive parameter.

This branch adds the option t add 'requiredBehaviors' to the adaptive parameter.
It is backward compatible (by default there are no requiredBehaviors)

The adaptiveDemo has some text and code to explain this new option.

…rial based on all or a subset of required behaviors.

Used in block.afterTrial  and adaptive.afterTrial

Added an option to only update an adaptive parameter when the success of a set of specified behaviors evaluates to true.
This is necessary to ignore updates to adaptives in trials in which the behavior is incomplete (e.g. a to ignore a key press after a fixation break)
…r updates conditional on the successful completion of a trial (i.e. with fixation)
@adammorrissirrommada
Copy link
Member

Good find. This seems OK to me.

@bartkrekelberg bartkrekelberg merged commit 3ab4ac6 into master Nov 21, 2021
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.

3 participants