Skip to content

Commit 934ab22

Browse files
minor bug fix to EMA
1 parent 0b5eed2 commit 934ab22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: precise/skaters/covariance/ewaempfactory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _ema_scov_update(s:dict, x:[float], r:float=None, target=None, y=None):
8181

8282
yyt = np.dot(xcol, ycolT)
8383
s['scov'] = (1 - r) * s['scov'] + r * yyt
84-
s['mean'] = (1 - r) * s['mean'] + r * x
84+
s['mean'] = (1 - r) * s['mean'] + r * np.array(x)
8585
s['pcov']= s['scov']*(s['n_samples']-1)/s['n_samples']
8686
return s
8787

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="precise",
10-
version="0.16.6",
10+
version="0.16.7",
1111
description="The home of Schur Hierarchical Portfolios: an aesthetically pleasing version of Hierarchical Risk Parity",
1212
long_description=README,
1313
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)