The Wayback Machine - https://web.archive.org/web/20220605112347/https://github.com/AI4Finance-Foundation/FinRL/issues/605
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

tutorials1-FinRL_PortfolioAllocation_NeurIPS_2020 can't train, it outputs "nan" #605

Open
chenxiao1129 opened this issue May 6, 2022 · 1 comment
Labels
bug good first issue

Comments

@chenxiao1129
Copy link

@chenxiao1129 chenxiao1129 commented May 6, 2022

i think i have the right data
1
but when at part6, i failed to train_model
2
i try to find the problem
it seems here where "features" is no "nan"
but after "mlp_extractor()", the "latent_pi" is a "nan" tensor
3

is there anybody know why this happen? and how to deal with it?

@XiaoYangLiu-FinRL XiaoYangLiu-FinRL added bug good first issue labels May 6, 2022
@Athe-kunal
Copy link
Collaborator

@Athe-kunal Athe-kunal commented May 10, 2022

It seems like your model has diverged and while extracting policy using log, it leads to NaN values. You can try hyperparameters optimization, maybe the current ones are suboptimal and diverging the models. The tutorial for the same is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue
3 participants