DatasetIndex#

class torch_brain.dataset.DatasetIndex(recording_id, start, end, _namespace='')[source]#

Bases: object

Index 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 by torch_brain.dataset.NestedDataset to handle nested namespaced attributes.