DatasetIndex#
- class torch_brain.dataset.DatasetIndex(recording_id, start, end, _namespace='')[source]#
Bases:
objectIndex for accessing a specific time interval of a recording within a
Dataset.- Parameters:
recording_id (
str) – The unique identifier for the recording to access.start (
float) – Start time of the interval (in seconds or appropriate time units).end (
float) – End time of the interval (in seconds or appropriate time units)._namespace (
str) – Optional namespace prefix for attribute namespacing. Used internally bytorch_brain.dataset.NestedDatasetto handle nested namespaced attributes.