Skip to content

Bias correction#79

Open
micahwoodard wants to merge 16 commits into
mainfrom
feat-bias-correction
Open

Bias correction#79
micahwoodard wants to merge 16 commits into
mainfrom
feat-bias-correction

Conversation

@micahwoodard
Copy link
Copy Markdown
Collaborator

@micahwoodard micahwoodard commented May 3, 2026

Adds bias correction to block based trial generator. Algorithm explained in #78. I wrote it so bias overrides autowater but need to follow up w/ scis to make sure this is the desired outcome.

I'm calculating bias synchronously in the next function, but need to benchmark if calculate_bias could ever take longer than the iti period.

@micahwoodard micahwoodard requested a review from bruno-f-cruz May 3, 2026 15:22
Copy link
Copy Markdown
Member

@bruno-f-cruz bruno-f-cruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the schema point of view, it looks good. I did not check the business logic, as I am not familiar with the algorithm.

Comment thread pyproject.toml Outdated
micahwoodard and others added 5 commits May 3, 2026 11:23
…/block_based_trial_generator.py

Co-authored-by: Bruno Cruz <7049351+bruno-f-cruz@users.noreply.github.com>
@micahwoodard micahwoodard requested a review from alexpiet May 14, 2026 16:16
@micahwoodard
Copy link
Copy Markdown
Collaborator Author

@bruno-f-cruz first pass at integrating the concept of metrics into trial generator and bonsai. Added a GlobalTrialMetrics subject in init and update in sample next trial
image

@micahwoodard micahwoodard requested a review from bruno-f-cruz May 29, 2026 17:06
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