From c11e668c0d56c1dc3444001094effc87b949acc0 Mon Sep 17 00:00:00 2001 From: Jerry Prawiharjo Date: Thu, 2 May 2019 14:34:24 -0700 Subject: [PATCH] Add logger.warning when falling back to Newton method (#950) This adds logger.warning when we fall back to Newton method. --- python/fbprophet/forecaster.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/fbprophet/forecaster.py b/python/fbprophet/forecaster.py index 973728c..1cc6144 100644 --- a/python/fbprophet/forecaster.py +++ b/python/fbprophet/forecaster.py @@ -1119,6 +1119,7 @@ class Prophet(object): params = model.optimizing(**args) except RuntimeError: # Fall back on Newton + logger.warning('Default optimization returns with an error. Falling back to Newton method.') args['algorithm'] = 'Newton' params = model.optimizing(**args)