Skip to content

Commit be290e1

Browse files
committed
add explanation for univariant models in example
1 parent 12ba700 commit be290e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ forecasting_horizon = 3
151151
y_train = [targets[: -forecasting_horizon]]
152152
y_test = [targets[-forecasting_horizon:]]
153153

154-
# same for features. For uni-variant models, X_train, X_test can be omitted
154+
# same for features. For uni-variant models, X_train, X_test can be omitted and set as None
155155
X_train = [features[: -forecasting_horizon]]
156156
# Here x_test indicates the 'known future features': they are the features known previously, features that are unknown
157157
# could be replaced with NAN or zeros (which will not be used by our networks). If no feature is known beforehand,

examples/20_basics/example_time_series_forecasting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
y_train = [targets[: -forecasting_horizon]]
3535
y_test = [targets[-forecasting_horizon:]]
3636

37-
# same for features. For uni-variant models, X_train, X_test can be omitted
37+
# same for features. For uni-variant models, X_train, X_test can be omitted and set as None
3838
X_train = [features[: -forecasting_horizon]]
3939
# Here x_test indicates the 'known future features': they are the features known previously, features that are unknown
4040
# could be replaced with NAN or zeros (which will not be used by our networks). If no feature is known beforehand,

0 commit comments

Comments
 (0)