ellisp / forecastxgb-r-package

An R package for time series models and forecasts with xgboost compatible with {forecast} S3 classes
GNU General Public License v3.0
140 stars 42 forks source link

Better way to choose maxlag #14

Open ellisp opened 7 years ago

ellisp commented 7 years ago

The choice of maxlag is the most obvious way to improve overall performance. I see two ways ahead:

a. do some comprehensive testing of different values and work out a better default formula b. let the user do it by brute force - some kind of cross-validation to choose the best value.

Probably will want to do both these - ie have good performing defaults, but also the option to determine the optimal value of the hyperparameter. Doing b. first will help with the a. anyway.

Ic3fr0g commented 7 years ago

What about ADF and KPSS tests ?