Edit: Here is the traceback
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-f0c6e65ecbb8> in <module>
1 splitter = TimeSeriesSplit(n_splits=3)
2 grid = GridSearchCV(pipe, {"gen__kw_args": [{"windows": (2,4,6)},]}, cv=splitter)
----> 3 grid.fit(X_train, y_train)
~/.local/lib/python3.8/site-packages/sklearn/model_selection/_search.py in fit(self, X, y, groups, **fit_params)
648 refit_metric = 'score'
649
--> 650 X, y, groups = indexable(X, y, groups)
651 fit_params = _check_fit_params(X, fit_params)
652
~/.local/lib/python3.8/site-packages/sklearn/utils/validation.py in indexable(*iterables)
246 """
247 result = [_make_indexable(X) for X in iterables]
--> 248 check_consistent_length(*result)
249 return result
250
~/.local/lib/python3.8/site-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
209 uniques = np.unique(lengths)
210 if len(uniques) > 1:
--> 211 raise ValueError("Found input variables with inconsistent numbers of"
212 " samples: %r" % [int(l) for l in lengths])
213
ValueError: Found input variables with inconsistent numbers of samples: [522323, 52417]