mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-04 23:59:59 +00:00
Fix duplicate kwarg algorithm when newton fallback is selected (#708)
* fix issue #700: duplicate kwarg algorithm * fix spacing * provide default to dict pop
This commit is contained in:
parent
e63f8cdfbd
commit
ff65d1431f
1 changed files with 1 additions and 0 deletions
|
|
@ -1048,6 +1048,7 @@ class Prophet(object):
|
|||
params = model.optimizing(
|
||||
dat, init=stan_init, iter=1e4, **kwargs)
|
||||
except RuntimeError:
|
||||
kwargs.pop('algorithm', None)
|
||||
params = model.optimizing(
|
||||
dat, init=stan_init, iter=1e4, algorithm='Newton',
|
||||
**kwargs
|
||||
|
|
|
|||
Loading…
Reference in a new issue