1

Can anyone help in disabling Prophet printing the Info on the terminal each time I train a model. I am training multiple models and each time it print this to the terminal :

INFO:fbprophet:Disabling daily seasonality. Run prophet with daily_seasonality=True to override this.

I have done a lot of searching and can not find a solution to this problem. Any anyone have a workaround?

Youssef Razak
  • 365
  • 4
  • 11
  • does not daily_seasonality=True or daily_seasonality=False disable it? if no, could you provide a minimal working example – Stepan Jun 26 '21 at 23:51

2 Answers2

7

The simplest way to suppress this annoying message without setting daily_seasonality=True in the model is to set the logging level higher than INFO for fbprophet:

import logging
logging.getLogger('fbprophet').setLevel(logging.WARNING) 
Jeremy Tran
  • 71
  • 1
  • 3
  • 1
    This is the correct answer. – Ami Tavory Mar 16 '22 at 08:09
  • 1
    Update: the current (version 1.1.4. I would guess the change happened at version 1.0) Prophet logger is named 'prophet'. So @Jeremy Tran's answer is correct, but the second line should be updated to: `logging.getLogger('prophet').setLevel(logging.WARNING)` – id5h Jun 26 '23 at 12:46
-4

Change this code:

m = Prophet(holidays=holidays)

And add the following:

m = Prophet(holidays=holidays, daily_seasonality=True)
Skulaurun Mrusal
  • 2,792
  • 1
  • 15
  • 29
GPRSmith
  • 299
  • 1
  • 7
  • 3
    this will disable the log, but change what type of seasonality the model uses. Prophet was detecting that there was no daily seasonality, so it disabled it and tells you what its doing with the log. A better way to disable the log would be `daily_seasonality=False`. – Jacob Myer Feb 03 '22 at 16:34
  • 1
    This answer is completely wrong. – Ami Tavory Mar 16 '22 at 08:09
  • Thanks both. Have aimed to delete the answer, but I can't whilst it is an accepted answer. – GPRSmith Mar 17 '22 at 09:36
  • Agree, just enabling the daily seasonality will turn the log off, but change the model composition. – winwin Mar 21 '22 at 18:30