nearest_neighbors | R Documentation |
It allows to check the new instances and their nearest neighbors used in a prediction associated with a "knnForecast" object.
nearest_neighbors(forecast)
forecast |
A |
A list including the new instances used in KNN regression and their nearest neighbors.
pred <- knn_forecasting(UKgas, h = 4, lags = 1:4, k = 2, msas = "MIMO")
nearest_neighbors(pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.