Comments (6)
Thanks for the reproducible examples. Earthquake permitting, I should be able to fix them over the next week. I may need a different approach to seasonality with high frequency though, as I don't think 366 dummy variables are likely to be useful (although it could be one of several options).
from forecastxgb-r-package.
They might be related to #15 which is quite a recent fix. Were you working with a time series with frequency = 1? If so, if you reinstall the latest version it might fix it.
from forecastxgb-r-package.
Thanks for the quick reply. The time series for problem 1 is frequency = 365.25 (daily data) and for the second one it is 12 (monthly data).
from forecastxgb-r-package.
hmm, ok. I'm not surprised there's bugs. Could you get me a reproducible example, or at least the code that does it? Could do me a favour and devtools::install_github()
the latest version (unless you've updated in the past four days), it's just possible the frequency=12 problem would be fixed by that.
This looks like two separate problems. I haven't thought through what to do when frequency is not an integer so that one doesn't surprise me, but the monthly one should be fine.
What's a good daily data source for testing?
from forecastxgb-r-package.
I've just updated the package and there is no effect. But I think I found the problem. There seems to be still a problem with the frequency settings.
Works:
bla_1 <- ts(runif(35, min = 5000, max = 10000))
(or: bla_1 <- ts(runif(35, min = 5000, max = 10000), start = c(2013,12)))
bla_1_XGB_model <- xgbts(y = bla_1)
Stopping. Best iteration: 25
bla_2 <- ts(runif(1076, min = 5000, max = 10000), start = c(2013, yday("2013-12-03")))
bla_2_XGB_model <- xgbts(y = bla_2)
Stopping. Best iteration: 13
Don't works:
bla_1 <- ts(runif(35, min = 5000, max = 10000), start = c(2013,12), frequency = 12)
Error in x[, maxlag + 2:f] <- seasons :
number of items to replace is not a multiple of replacement length
In addition: Warning message:
In xgbts(y = bla_1) :
y is too short for cross-validation. Will validate on the most recent 20 per cent instead.
bla_2 <- ts(runif(1076, min = 5000, max = 10000), start = c(2013, yday("2013-12-03")),
frequency = 365.25)
bla_2_XGB_model <- xgbts(y = bla_2)
Error in x[, maxlag + 1] <- time(y2) :
number of items to replace is not a multiple of replacement length
from forecastxgb-r-package.
I'm going to close this. Thanks for bringing it up, it's led to a fruitful line of work.
The problem with the monthly series should be fixed - the short series should at least run, and there is now a better option for these short series (and maybe better full stop) of setting seas_method = 'decompose'
which should give better results (i think).
The problem with the daily series is now a duplicate of the content of #22 and #26.
from forecastxgb-r-package.
Related Issues (20)
- more ways of dealing with seasonality HOT 1
- thorough test of different ways of choosing lambda HOT 1
- thorough test of the different methods of dealing with seasonality
- Bug - cannot handle non-integer frequency HOT 2
- odd behaviour when lambda = 1, decompose, differencing HOT 1
- decompose with non-complete cycles creates NA problems
- "decompose" method doesn't work well in combination with differencing
- When I run the demo code, an error occurried - "result would be too long a vector"
- the meaning of the model reults HOT 2
- forecast doesn't work with decompose seas_method HOT 1
- lambda problem
- Install error in MacOS
- forecasts with xreg with 1 period forward don't work
- Hyperparameter tuning for xgboost?
- MAXLAG XREGS
- Training period HOT 6
- How to predict step by step HOT 1
- forecast.xgbar() is inaccessible with R 3.5.0 HOT 1
- Maxlag is negative for short time series
- question: is this package abandoned?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forecastxgb-r-package.