Skip to content

Commit b9e34db

Browse files
committed
Release
1 parent c127cb9 commit b9e34db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
HERE = pathlib.Path(__file__).parent
55

6-
VERSION = '0.1.4'
6+
VERSION = '0.1.5'
77
PACKAGE_NAME = 'tsmoothie'
88
AUTHOR = 'Marco Cerliani'
99
AUTHOR_EMAIL = '[email protected]'

Diff for: tsmoothie/utils_func.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def kalman_interval(true, prediction, cov, confidence=0.05):
223223
g = stats.norm.ppf(1 - confidence/2)
224224

225225
resid = true - prediction
226-
std_err = np.sqrt(np.square(resid).mean(axis=1, keepdims=True))
226+
std_err = np.sqrt(np.nanmean(np.square(resid), axis=1, keepdims=True))
227227

228228
low = prediction - g*(std_err*cov)
229229
up = prediction + g*(std_err*cov)

0 commit comments

Comments
 (0)