Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last_w is NaN #148

Open
ymxka opened this issue Jan 30, 2024 · 0 comments
Open

last_w is NaN #148

ymxka opened this issue Jan 30, 2024 · 0 comments

Comments

@ymxka
Copy link

ymxka commented Jan 30, 2024

In training phase, I get a assertionerror:
File "E:\github\PGPortfolio\pgportfolio\learn\nnagent.py", line 153, in train
self.evaluate_tensors(x, y, last_w, setw, [self.__train_operation])
File "E:\github\PGPortfolio\pgportfolio\learn\nnagent.py", line 169, in evaluate_tensors
"the last_w is {}".format(last_w)
AssertionError: the last_w is [[0.09090909 0.09090909 0.09090909 ... 0.09090909 0.09090909 0.09090909]
[0.09090909 0.09090909 0.09090909 ... 0.09090909 0.09090909 0.09090909]
[0.09090909 0.09090909 0.09090909 ... 0.09090909 0.09090909 0.09090909]
...
[ nan nan nan ... nan nan nan]
[ nan nan nan ... nan nan nan]
[ nan nan nan ... nan nan nan]]
Has anyone encountered this problem and how is it solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant