PandasDataset¶
- class torchtime.datasets.PandasDataset(path: Optional[str] = None, dataframe: Optional[DataFrame] = None, dimensions: Optional[List[str]] = None, labels: Optional[str] = None, **kwargs)[source]¶
Base class for creating datasets which are compatible with torchtime from
pandas.Dataframe.- Parameters:
path (str) – The path to the pickle file containing the
pandas.Dataframeto load.dataframe (pd.Dataframe) – The
pandas.Dataframeto load.dimensions (list, optional) – The columns of the
pandas.Dataframewhich contain the individual dimensions of contained time series. IfNoneis given, all columns are considered to hold the timer series data.labels (str, optional) – The column of the pandas.Dataframe which contains the labels. If
Noneis given, the data is assumed to have no labels.
Note
pathanddataframeare mutually exclusive.