Repository navigation
fix(applications): RLRW returns the choices it simulates - #102
Merged
lenarddome merged 3 commits intoOct 6, 2026
Merged
lenarddome merged 3 commits into
lenarddome merged 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…does-not-return-the-choices-it-simulates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lenarddome
deleted the
100-rlrwgeneratetrue-does-not-return-the-choices-it-simulates
branch
October 6, 2026 14:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #100.
With
generate=True,RLRWsampled a choice on every trial but did not return it, so its simulations could not be used for parameter or model recovery.Changes
_sessions.rlrwrecords the chosen arm of every trial (int64) and returns it;RLRWoutputs it asresponse, the column it reads observed choices from, so simulated data can be fitted directly. Withoutgenerate,responseis the observed choice.generateand the new output in theRLRWdocstring.responseequals the observed choices withoutgenerate; numba and Python simulate the same choices. The frozen per-trial reference predatesresponse, so the reference comparisons leave it out.Every
RLRWexport now has one more column,response; other outputs are unchanged.🤖 Generated with Claude Code