Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibly use designmatrix package #8

Open
dashaub opened this issue Nov 4, 2016 · 4 comments
Open

possibly use designmatrix package #8

dashaub opened this issue Nov 4, 2016 · 4 comments

Comments

@dashaub
Copy link

dashaub commented Nov 4, 2016

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

@ellisp
Copy link
Owner

ellisp commented Nov 5, 2016

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.

@dashaub
Copy link
Author

dashaub commented Nov 6, 2016

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?

@wjhrdy
Copy link

wjhrdy commented Feb 10, 2017

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.

@dashaub
Copy link
Author

dashaub commented May 24, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants