mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-09-16 22:20:23 +00:00
Add logger.warning when falling back to Newton method (#950)
This adds logger.warning when we fall back to Newton method.
This commit is contained in:
parent
f9adb9623e
commit
c11e668c0d
1 changed files with 1 additions and 0 deletions
|
|
@ -1119,6 +1119,7 @@ class Prophet(object):
|
||||||
params = model.optimizing(**args)
|
params = model.optimizing(**args)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
# Fall back on Newton
|
# Fall back on Newton
|
||||||
|
logger.warning('Default optimization returns with an error. Falling back to Newton method.')
|
||||||
args['algorithm'] = 'Newton'
|
args['algorithm'] = 'Newton'
|
||||||
params = model.optimizing(**args)
|
params = model.optimizing(**args)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue