Dataset Base Class

class darts.utils.data.torch_datasets.dataset.TorchDataset[source]

Bases: ABC, Dataset

Abstract class for all datasets that can be used with Darts’ TorchForecastingModel.

Provides an efficient method to compute the feature index range to be extracted for any sample.