Closed adrfantini closed 4 years ago
I'm having trouble downloading the files from your reprex.
You are not authorized to download this file.
Despite this, I think I know what the issue is. There's a difference in how seasonal periods are specified with fable and prophet. In fable, a numerical input is relative to the data's frequency (in your case 15 minutes), but in prophet a numerical input is relative to 1 day (the assumed data frequency from Facebook's application).
With fable, seasonal periods can be specified with natural language, which minimises the chance of user error. Try setting period = "day"
(and week) and see if this works for you.
fit <- d %>%
model(
prophet = prophet(y ~
growth("linear") +
season(name = "daily" , period = "day", order = 10, prior_scale = 10, type = "multiplicative") +
season(name = "weekly", period = "week", order = 10, prior_scale = 10, type = "multiplicative")
)
)
I think the docs should be updated to make this difference clearer.
This data is hourly (unlike my SO data):
# A tsibble: 2,772 x 2 [1h] <UTC>
So what you say still applies:
Bingo! Thanks!
(feel free to reopen if you want use this issue to update the docs)
Updated docs, thanks.
Hi and thank you for the package! As per SO question, I have been unable to use the
fable
interface forprophet
, probably due to my own lack of understanding. In any case here is an example:With Fable:
Clearly something here is very different in the settings, but I can't figure it out.