diff --git a/src/safeds/data/labeled/containers/_time_series_dataset.py b/src/safeds/data/labeled/containers/_time_series_dataset.py index 80a4c2bbd..144a86c43 100644 --- a/src/safeds/data/labeled/containers/_time_series_dataset.py +++ b/src/safeds/data/labeled/containers/_time_series_dataset.py @@ -20,9 +20,10 @@ class TimeSeriesDataset(Dataset[Table, Column]): """ - A time series dataset maps feature and time columns to a target column. + A time series dataset maps feature to a target column. It can be used to train machine learning models. + + Data can be segmented into windows when loading it into the models. - Unlike a TabularDataset, a TimeSeries needs to contain one target and one time column, but can have empty features. Parameters ---------- @@ -37,6 +38,8 @@ class TimeSeriesDataset(Dataset[Table, Column]): the target column are used as features. forecast_horizon: The number of time steps to predict into the future. + continuous + Whether or not to continue the forecast in the steps before forecast horizon. Raises ------ @@ -183,7 +186,7 @@ def continuous(self) -> bool: @property def extras(self) -> Table: """ - Additional columns of the time series dataset that are neither features, target nor time. + Additional columns of the time series dataset that are neither features nor target. These can be used to store additional information about instances, such as IDs. """ @@ -195,14 +198,14 @@ def extras(self) -> Table: def to_table(self) -> Table: """ - Return a new `Table` containing the feature columns, the target column, the time column and the extra columns. + Return a new `Table` containing the feature columns, the target column and the extra columns. The original `TimeSeriesDataset` is not modified. Returns ------- table: - A table containing the feature columns, the target column, the time column and the extra columns. + A table containing the feature columns, the target column and the extra columns. """ return self._table diff --git a/src/safeds/data/tabular/plotting/_table_plotter.py b/src/safeds/data/tabular/plotting/_table_plotter.py index a5feae02d..4d6a253c2 100644 --- a/src/safeds/data/tabular/plotting/_table_plotter.py +++ b/src/safeds/data/tabular/plotting/_table_plotter.py @@ -504,6 +504,8 @@ def moving_average_plot( The name of the column to be plotted on the x-axis. y_name: The name of the column to be plotted on the y-axis. + window_size: + The size of the moving average window theme: The color theme of the plot. Default is "light".