Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
cerlymarco committed Aug 28, 2020
1 parent c127cb9 commit b9e34db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

HERE = pathlib.Path(__file__).parent

VERSION = '0.1.4'
VERSION = '0.1.5'
PACKAGE_NAME = 'tsmoothie'
AUTHOR = 'Marco Cerliani'
AUTHOR_EMAIL = '[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion tsmoothie/utils_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def kalman_interval(true, prediction, cov, confidence=0.05):
g = stats.norm.ppf(1 - confidence/2)

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

low = prediction - g*(std_err*cov)
up = prediction + g*(std_err*cov)
Expand Down

0 comments on commit b9e34db

Please sign in to comment.