mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-16 08:38:30 +00:00
Fix #1189
This commit is contained in:
parent
5ad4e8a092
commit
9425b89257
1 changed files with 2 additions and 2 deletions
|
|
@ -1146,8 +1146,8 @@ class Prophet(object):
|
|||
# If no changepoints were requested, replace delta with 0s
|
||||
if len(self.changepoints) == 0:
|
||||
# Fold delta into the base rate k
|
||||
self.params['k'] = self.params['k'] + self.params['delta']
|
||||
self.params['delta'] = np.zeros(self.params['delta'].shape)
|
||||
self.params['k'] = self.params['k'] + self.params['delta'].reshape(-1)
|
||||
self.params['delta'] = np.zeros(self.params['delta'].shape).reshape((-1, 1))
|
||||
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue