Frías, María PilarMartínez-del-Río, Francisco2025-10-012025-10-012025-01-02M. P. Frías and F. Martínez, "An Ensemble for Automatic Time Series Forecasting With K-Nearest Neighbors," in IEEE Access, vol. 13, pp. 4117-4125, 2025.2169-353610.1109/ACCESS.2025.3525561https://hdl.handle.net/10953/6145In this paper a novel approach for automatically configuring a k-nearest neighbors regressor for univariate time series forecasting is presented. The approach uses an ensemble consisting of several k-nearest neighbors models with different configurations for their hyperparameters and model selection choices. One advantage of this scheme is that the uncertainty associated with choosing a wrong configuration for the model is reduced. This approach is compared with the classical way of selecting a configuration by doing a grid search among several configurations of hyperparameters and model selection choices and choosing the one that performs best on a validation set. The experimental results, using datasets from time series forecasting competitions, show that, in line with previous works, the use of an ensemble produces a robust model, outperforming the approach that uses a grid search for obtaining the best configuration on a validation set and almost any specific configuration. The forecast accuracy of the ensemble is similar to state-of-theart models. Furthermore, this paper also tests the effectiveness of some recent approaches for dealing with trending time series when using the k-nearest neighbors algorithm.engAttribution 3.0 Spainhttp://creativecommons.org/licenses/by/3.0/es/Trending time seriesUnivariate time series forecastingModel combinationAn Ensemble for Automatic Time Series Forecasting With K-Nearest Neighborsinfo:eu-repo/semantics/article004311info:eu-repo/semantics/openAccess