How to concatenate features extracted from y with other exogenous features? #5420
Replies: 2 comments 4 replies
-
hm, on first glance, it seems like this should work. Have you tried to remove parts until it works? Would be good to have the "minimal failing example", to investigate. |
Beta Was this translation helpful? Give feedback.
-
I tested the pipeline part with the y-only features and encountered an unexpected behavior. It seems like pipelines that are constructed with a y = load_airline()
y_train, y_test = temporal_train_test_split(y)
fh = ForecastingHorizon(y_test.index, is_relative=False)
forecaster = make_reduction(Ridge(random_state=42), window_length=12, strategy="recursive")
pipeline = (YtoX()*Lag([1,2,3])*Differencer([1])) ** forecaster
pipeline.fit(y=y_train)
y_pred = pipeline.predict(fh=fh) Checking |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to make a forecast based on features extracted from y, as well as other exogenous features as X, and I haven't been able to build a pipeline that does this. Here is the shop version of what I'd like to do:
Applying the transformer part of the pipeline, I can see the columns correctly transformed. However, the .predict() operator gives as error as follows:
"TypeError: _transform output of <class 'sktime.transformations.compose._ytox.YtoX'> does not comply with sktime mtype specifications."
I'd appreciate any hints on how to build such a pipeline.
Beta Was this translation helpful? Give feedback.
All reactions