mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +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(
|
params = model.optimizing(
|
||||||
dat, init=stan_init, iter=1e4, **kwargs)
|
dat, init=stan_init, iter=1e4, **kwargs)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
kwargs.pop('algorithm', None)
|
||||||
params = model.optimizing(
|
params = model.optimizing(
|
||||||
dat, init=stan_init, iter=1e4, algorithm='Newton',
|
dat, init=stan_init, iter=1e4, algorithm='Newton',
|
||||||
**kwargs
|
**kwargs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue