neuralset.dataloader.Batch¶
- class neuralset.dataloader.Batch(*, segments: Sequence[Segment], data: dict[str, Tensor])[source][source]¶
A collection of extracted features for a list of segments.
Returned by the
SegmentDatasetorDataLoader, this object holds both the underlying segments and the computed tensor data ready for machine learning models.- data[source]¶
The extracted feature tensors. Keys match the names of the extractors passed to the Segmenter. Tensors are always batched along the first dimension.
- Type:
dict of str to torch.Tensor