Fitted values in sktime #6310
saumya-verma-DS
started this conversation in
General
Replies: 1 comment 1 reply
-
You could try the alternative implementatoin, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My code is
from sklearn.neighbors import KNeighborsRegressor
from sktime.forecasting.compose import make_reduction
regressor = KNeighborsRegressor(n_neighbors=5)
forecaster = make_reduction(regressor, strategy="direct", window_length=6)
forecaster.fit(train_targets,fh =[-1])
predictions_train = forecaster.predict(fh = [-1])
and the error I am getting NotImplementedError: In-sample predictions are not implemented. But there is no other way to get fitted values in sktime.
My main problem is that I would need fitted values for my models. How can I get those?
Beta Was this translation helpful? Give feedback.
All reactions