Skip to content

Commit

Permalink
minor bug fix to EMA
Browse files Browse the repository at this point in the history
  • Loading branch information
microprediction committed Dec 16, 2024
1 parent 0b5eed2 commit 934ab22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion precise/skaters/covariance/ewaempfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _ema_scov_update(s:dict, x:[float], r:float=None, target=None, y=None):

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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="precise",
version="0.16.6",
version="0.16.7",
description="The home of Schur Hierarchical Portfolios: an aesthetically pleasing version of Hierarchical Risk Parity",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 934ab22

Please sign in to comment.