gwexpy.interop.torch_dataset
Functions
|
Create a torch |
|
Build a |
Classes
|
Simple windowed dataset wrapper for torch training loops. |
- class gwexpy.interop.torch_dataset.TimeSeriesWindowDataset(series, *, window: int, stride: int = 1, horizon: int = 0, labels: TimeSeries | TimeSeriesMatrix | np.ndarray | Callable | None = None, multivariate: bool = False, align: str = 'intersection', device=None, dtype=None)[source]
Bases:
objectSimple windowed dataset wrapper for torch training loops.
- gwexpy.interop.torch_dataset.to_torch_dataset(obj, *, window: int, stride: int = 1, horizon: int = 0, labels: TimeSeries | TimeSeriesMatrix | np.ndarray | Callable | None = None, multivariate: bool = False, align: str = 'intersection', device=None, dtype=None)[source]
Build a
TimeSeriesWindowDatasetfrom the provided object.