Skip to content

Add callable microsaccades as intended by #492#917

Merged
mschrimpf merged 9 commits into
brain-score:masterfrom
benlonnqvist:callable_microsaccades
Jun 24, 2024
Merged

Add callable microsaccades as intended by #492#917
mschrimpf merged 9 commits into
brain-score:masterfrom
benlonnqvist:callable_microsaccades

Conversation

@benlonnqvist

@benlonnqvist benlonnqvist commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

PR #492 added microsaccades to brain-score but unintendedly, were only accessible by directly accessing the activations_model._extractor. This PR extends the microsaccades to be callable from the model.look_at() method (for testing stimuli) and model.start_task() method (for fitting stimuli), as intended by the description of PR #492.

In short, this PR simply extends the call signature of require_variance and number_of_trials a bit further than before.

PR #365 depends on this PR.

  • add a test to catch errors with attach_stimulus_set_meta shape when called from from_stimulus_set

@benlonnqvist benlonnqvist marked this pull request as draft June 14, 2024 13:37
@benlonnqvist benlonnqvist reopened this Jun 17, 2024
@benlonnqvist benlonnqvist marked this pull request as ready for review June 17, 2024 11:52
Comment thread brainscore_vision/model_helpers/activations/core.py
Comment thread brainscore_vision/model_helpers/activations/core.py
Comment thread tests/test_model_helpers/activations/test___init__.py

@mschrimpf mschrimpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good once you address suggestions

Comment thread brainscore_vision/model_helpers/brain_transformation/behavior.py Outdated
Comment thread brainscore_vision/model_helpers/brain_transformation/__init__.py Outdated
Comment thread brainscore_vision/model_helpers/brain_transformation/__init__.py Outdated
benlonnqvist and others added 4 commits June 21, 2024 08:15
Co-authored-by: Martin Schrimpf <mschrimpf@users.noreply.github.com>
…rbiters (required since the generic look_at no longer takes kwargs but specifically require_variance)
@benlonnqvist

benlonnqvist commented Jun 21, 2024

Copy link
Copy Markdown
Contributor Author

@mschrimpf Looks like it's all green now - should be good to merge

@mschrimpf mschrimpf merged commit cb175d1 into brain-score:master Jun 24, 2024
@benlonnqvist benlonnqvist deleted the callable_microsaccades branch June 24, 2024 12:16
Nishant-codex pushed a commit to Nishant-codex/vision that referenced this pull request Jul 2, 2026
…e#917)

* add callable microsaccades

* add test to catch errors in stimulus set meta attachment when using microsaccades

* mark new test as memory intense

* Apply suggestions from code review

Co-authored-by: Martin Schrimpf <mschrimpf@users.noreply.github.com>

* add require_variance to the signature of look_at for all behavioral arbiters (required since the generic look_at no longer takes kwargs but specifically require_variance)

---------

Co-authored-by: Martin Schrimpf <mschrimpf@users.noreply.github.com>
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