Skip to content

Commit bcefa87

Browse files
author
Michael Fuest
committed
updated tutorials
1 parent e4dec08 commit bcefa87

File tree

5 files changed

+1873
-265
lines changed

5 files changed

+1873
-265
lines changed

cents/datasets/timeseries_dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def __init__(
4949
context_var_column_names: Any = None,
5050
normalize: bool = True,
5151
scale: bool = True,
52+
overrides: Dict[str, Any] = {},
5253
):
5354
# Initialize basic attributes
5455
self.time_series_column_names = (
@@ -86,6 +87,9 @@ def __init__(
8687
self.normalize = normalize
8788
self.scale = scale
8889

90+
if self.scale:
91+
assert self.normalize, "Normalization must be enabled if scaling is enabled"
92+
8993
# Preprocess and optionally encode context
9094
self.data = self._preprocess_data(data)
9195
if self.context_vars:

0 commit comments

Comments
 (0)