mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-17 21:10:45 +00:00
Fit if constant history and logistic growth
This commit is contained in:
parent
a38aaa38c6
commit
1b91fa3064
1 changed files with 4 additions and 1 deletions
|
|
@ -980,7 +980,10 @@ class Prophet(object):
|
|||
'sigma_obs': 1,
|
||||
}
|
||||
|
||||
if history['y'].min() == history['y'].max():
|
||||
if (
|
||||
(history['y'].min() == history['y'].max())
|
||||
and self.growth == 'linear'
|
||||
):
|
||||
# Nothing to fit.
|
||||
self.params = stan_init()
|
||||
self.params['sigma_obs'] = 1e-9
|
||||
|
|
|
|||
Loading…
Reference in a new issue