Grid search with a weighted error function: Hyper-parameter optimization for financial time series forecasting

Financial time series forecasting is a difficult task due to the complexity and volatility of financial markets. Machine learning models have been applied to tackle this task, but finding their optimal hyper-parameters with less time and ensuring the prediction accuracy of models are still significa...

Full description

Saved in:
Bibliographic Details
Published inApplied soft computing Vol. 154; p. 111362
Main Authors Zhao, Yuan, Zhang, Weiguo, Liu, Xiufeng
Format Journal Article
LanguageEnglish
Published Elsevier B.V 01.03.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Financial time series forecasting is a difficult task due to the complexity and volatility of financial markets. Machine learning models have been applied to tackle this task, but finding their optimal hyper-parameters with less time and ensuring the prediction accuracy of models are still significant challenges. Existing methods such as GridSearch with cross-validation (GridsearchCV) for optimizing the hyper-parameters are time-consuming for complex models or large search spaces, and they do not ensure that the model has excellent predictive accuracy. To address these challenges, we propose a novel method called GridsearchWEF that uses grid search with a weighted error function. This method aims to reduce the time cost of hyper-parameter optimization for machine learning models and guarantee their prediction performance. We conduct an empirical analysis of crude oil return forecasting using four machine learning models: RF, GBDT, SVR, and LASSO. We compare the performance of these models using GridsearchCV, random search with cross-validation (RandomizedSearchCV), Bayes optimization with cross-validation (BayesSearchCV), and GridsearchWEF. The results show that GridsearchWEF outperforms the other methods in terms of hyper-parameter optimization, modeling efficiency, prediction accuracy, and economic values. In particular, the time of all models using GridSearchWEF is less than 30 s, which is much less than other algorithms. GridsearchWEF is a more efficient and superior method for hyper-parameter optimization in financial time series forecasting. •A novel method for hyper-parameter optimization based on a weighted error function.•A faster and more accurate prediction of crude oil returns using machine learning models.•A comparison of four types of machine learning models: GF-type, GV-type, RV-type, and BV-type models.•An evaluation of the economic significance of the proposed method for crude oil investment.
ISSN:1568-4946
1872-9681
DOI:10.1016/j.asoc.2024.111362