Does ForecasterAutoreg employ parallel programming by default? #453
-
I am using the ForecasterAutoreg function from the skforecast.ForecasterAutoreg for time series forecasting. It appears that this function inherently employs parallel programming to enhance computation speed. However, this presents an issue for me when executing my code on a server. Is there a way to disable this feature or restrict the number of concurrent processes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @SeyyedMahdiNoori, While skforecast itself does not offer parallelization, there are several regressors that do. It's possible that the regressor you are utilizing in the forecaster has parallelization enabled by default. Could you please let me know which regressor you are using? Fortunately, most implementations provide the option to specify the number of cores for parallel processing. For instance, in sklearn, you can set the parameter n_jobs=1, while in LightGBM, you can use num_threads=1. I hope this information helps. |
Beta Was this translation helpful? Give feedback.
Hello @SeyyedMahdiNoori,
Thank you for choosing skforecast!
While skforecast itself does not offer parallelization, there are several regressors that do. It's possible that the regressor you are utilizing in the forecaster has parallelization enabled by default. Could you please let me know which regressor you are using?
Fortunately, most implementations provide the option to specify the number of cores for parallel processing. For instance, in sklearn, you can set the parameter n_jobs=1, while in LightGBM, you can use num_threads=1.
I hope this information helps.