VariableContextMixin#
- class core.dataset.VariableContextMixin(*args, **kwargs)[source]#
Bases:
objectExtends the sampled window backward for extra context.
For a suite with a fixed, trailing scored window. Mix in ahead of IBLBrainWideBench2026 (whose context_length/context_window/ MAX_CONTEXT_LENGTH this builds on) and set TARGET_WINDOW to the suite’s own fixed scored-window length.
get_sampling_intervals() is untouched by this mixin: the eval set (which trials exist, what’s scored) never changes with context_length. Extra context is added per sample in __getitem__, clipped to 0 near a recording or split boundary, never by mutating the shared Interval a sampler iterates over.