prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Is there a parameter to close weekly_season when some events happen?

Open stevenjk2012 opened this issue 9 years ago • 7 comments

In my predict situation , I need to predict the sale record of jewelry . The trend is ok ,but the Valentine's day of 2017-02-14 is very poor. after check the data ,I found that : 2015-02-14 is Sat,and 2016.2.14 is Sunday; the sale record is twice. But 2017-02-14 is Wednesday, so the predict data is lower . ps:weekly(1~7):0.28 -0.12 -0.11 -0.11 -0.12 -0.08 0.3 If I can reduce the influence of weekly_seasonlity of Valentine's day ,the predict is ok

stevenjk2012 avatar Jun 06 '17 09:06 stevenjk2012

I have the same question, could anyone can help?

kobesxl avatar Jun 06 '17 09:06 kobesxl

This should work by adding a holiday effect for Valentine's day (https://facebookincubator.github.io/prophet/docs/holiday_effects.html). Does that do it?

bletham avatar Jun 08 '17 03:06 bletham

yes ,I set the holiday. but the history is special day of the week ,the week_seasonality make prediction fail @bletham

stevenjk2012 avatar Jun 08 '17 04:06 stevenjk2012

I guess the problem is that the additive effect might vary a lot depending on the weekday. Effect of valentine's day on wednesday might be totally different from effect when valentine's day is on sunday. As prophet estimates one effect that doesn't depend on the day of week, the forecast can be unreasonable.

to 8. kesäkuuta 2017 klo 7.20 Stevenjk [email protected] kirjoitti:

yes ,I set the holiday. but the history is special day of the week ,the week_seasonality make prediction fail

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/facebookincubator/prophet/issues/213#issuecomment-306994109, or mute the thread https://github.com/notifications/unsubscribe-auth/APOAA0Twn3BRBAxwn7tvZWWn6p7MUB-3ks5sB3ZwgaJpZM4NxHE0 .

vhpietil avatar Jun 08 '17 04:06 vhpietil

@stevenjk2012 Have you tried to smooth the seasonality learned on holidays? You can use holidays_prior_scale to adjust your fitting curve. The smaller the parameter value is, the smoother your fitting will be.

maskani-moh avatar Jun 13 '17 18:06 maskani-moh

Another thing would be to make separate holidays for Valentines-on-Weekday and Valentines-on-Weekend. Unfortunately given only Valentines-on-Weekend in the data, I don't expect Prophet to be able to predict a different holiday effect in the weekdays. (But moving forward with both it should).

bletham avatar Jun 13 '17 23:06 bletham

This seems to have been resolved, if you have additional questions along this line feel free to reopen!

bletham avatar Jul 04 '17 08:07 bletham