brainscore_core.supported_data_standards.brainio.stimuli
STIMULI MODULE - Stimulus set management for Brain-Score
PURPOSE:
This module handles collections of experimental stimuli (images, videos, etc.) used in Brain-Score benchmarks and model evaluation. It provides a pandas-based container that links stimulus metadata with actual stimulus files.
KEY CLASSES:
StimulusSet: A DataFrame-like container for stimulus collections
StimulusSetLoader: Loads stimulus sets from CSV metadata + ZIP archives
CORE FUNCTIONALITY:
Links stimulus metadata (labels, categories, etc.) with file paths
Validates that all referenced stimulus files exist locally
Handles legacy ‘image_id’ vs ‘stimulus_id’ naming conventions
Integrates with Brain-Score’s model interface for stimulus presentation
This replaces the full BrainIO stimuli module but maintains compatibility with all existing Brain-Score stimulus sets and benchmarks.
Classes
|
|
|
Loads a StimulusSet from a CSV file and a directory of stimuli. |