Skip to content

Commit

Permalink
Bug fixed: formula
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBoTang committed Apr 25, 2024
1 parent dfdbe8c commit 352ef4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pyepo/data/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ def genData(num_data, num_features, num_assets, deg=1, noise_level=1, seed=135):
eps = rnd.randn(num_assets)
r[i] += L @ f + 0.01 * noise_level * eps
# covariance matrix of the returns
cov = L @ L.T + (1e-2 * noise_level) * np.eye(num_assets)
cov = L @ L.T + (1e-2 * noise_level) ** 2 * np.eye(num_assets)
return cov, x, r

0 comments on commit 352ef4e

Please sign in to comment.