mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
Make sure 'mu' and 'std' are not numpy floats (#2378)
This commit is contained in:
parent
0bc1f9e784
commit
5e54831268
1 changed files with 2 additions and 2 deletions
|
|
@ -367,8 +367,8 @@ class Prophet(object):
|
||||||
else:
|
else:
|
||||||
standardize = True
|
standardize = True
|
||||||
if standardize:
|
if standardize:
|
||||||
mu = df[name].mean()
|
mu = float(df[name].mean())
|
||||||
std = df[name].std()
|
std = float(df[name].std())
|
||||||
self.extra_regressors[name]['mu'] = mu
|
self.extra_regressors[name]['mu'] = mu
|
||||||
self.extra_regressors[name]['std'] = std
|
self.extra_regressors[name]['std'] = std
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue