forecastxgb-r-package icon indicating copy to clipboard operation
forecastxgb-r-package copied to clipboard

possibly use designmatrix package

Open dashaub opened this issue 8 years ago • 4 comments

It looks like you've already setup the coviates to feed into xgboost using lagged values of the timseries--a sensible approach. It could also make sense to included fixed effects for day of week/month/etc.

I started building a package designmatrix a few years back to generate xreg values to feed into forecasting models and anticipated using it with forecastHybrid eventually. It is barely off the ground, but the basic idea is to make it easy to generate covariates for day of week, weekend, month, quarter, etc. Eventually interactions and holidays for these would be nice as well. If you want to import it, it could serve as a good excuse for me to restart and to finish development. Take a look here: https://github.com/dashaub/designmatrix

dashaub avatar Nov 04 '16 16:11 dashaub

Yes I think this would help and I'll import this when it's ready. I think moving holidays (Easter etc) is a must at some point, although of course people can put them in via xreg.

ellisp avatar Nov 05 '16 23:11 ellisp

Great. Easter and major holidays should be easy enough to add, perhaps with an argument majorHolidays = TRUE. Any other things you'd like to see?

dashaub avatar Nov 06 '16 00:11 dashaub

On the same note I have made a package to generate xregs using a list of events and start and end times.

https://github.com/republicwireless-open/foregen

Considering that most of the effort of forecasting is feature generation if we can speed up that part we could speed up the overall forecasting process by a lot.

wjhrdy avatar Feb 10 '17 19:02 wjhrdy

And another option, the "timekit" package, specifically the tk_get_timeseries_signature() function.

dashaub avatar May 24 '17 21:05 dashaub