Skip to content

Commit

Permalink
fix: One line X_splits unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Dec 2, 2023
1 parent 6e45b6f commit 88c4d63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functime/forecasting/_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def evaluate_windows(
results = []
for i in range(n_splits):
y_train, y_test = y_splits[i]
X_train, X_test = X_splits[i] if X_splits is not None else None, None
X_train = None
X_test = None
if X_splits is not None:
X_train, X_test = X_splits[i]
result = evaluate_window(
y_train=y_train,
y_test=y_test,
Expand Down

0 comments on commit 88c4d63

Please sign in to comment.