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

GPU #1

Closed
m1996 opened this issue Aug 8, 2021 · 14 comments
Closed

GPU #1

m1996 opened this issue Aug 8, 2021 · 14 comments

Comments

@m1996
Copy link

m1996 commented Aug 8, 2021

hello.
very sorry for commenting here, my question is from ppn portfolio which its issues is closed and I had no other way to ask from you.
i tried to run that project on google colab but it took so much time which colab doesn't accept. i figured out that tensorflow 1.4.0 doesn't use gpu. is there any solution for that? i tried so much but i got no answer. please help me.
and if there is anything that i should consider while using colab for that project, please remind me.

regards

@Vanint
Copy link
Owner

Vanint commented Aug 8, 2021

Hi, I have not used google colab so I am not familiar with it. Which part is time-consuming? Data processing or optimization?

@m1996
Copy link
Author

m1996 commented Aug 8, 2021 via email

@Vanint
Copy link
Owner

Vanint commented Aug 8, 2021

In fact, I did not encounter this problem, where I conduct experiments on the sever with four Titan X GPUs. I think the reasons may lie on the gpu platform or python packages. Can you find any private server to verify the first factor? Moreover, have you tried to install tensorflow-gpu?

@m1996
Copy link
Author

m1996 commented Aug 8, 2021 via email

@Vanint
Copy link
Owner

Vanint commented Aug 8, 2021

I guess so. Since I have left the previous school, the server I used has been modified, so I cannot access it to confirm the details. In addition to finding a private server, one more suggestion is that you can first try the code in EIIE (https://github.com/ZhengyaoJiang/PGPortfolio), since our method is developed based on this repository. If it works, then you can change the method part to our method.

@m1996
Copy link
Author

m1996 commented Aug 8, 2021 via email

@Vanint
Copy link
Owner

Vanint commented Aug 8, 2021

Sure, if it works.

@m1996
Copy link
Author

m1996 commented Aug 8, 2021 via email

@Vanint Vanint closed this as completed Aug 9, 2021
@m1996
Copy link
Author

m1996 commented Sep 13, 2021

hello.
again very sorry for commenting here, my question is from ppn portfolio which its issues is closed and I had no other way to ask from you.
I fixed the gpu problem, and trained the agent but 1000 step by 1000 step (due to google colab limits) by using restore dir. but the results were so weird. The APV was 49000!! I figured out the omega (portfolio weights) got negative values which is not usual. do you have any idea why it happens?
I thought its because of decision making module(as you commented: three strategies to make decision, where the leverage operation is beyond the version of the paper.) which uses 2-head leverage operation. so I changed it to fully connected layer. and after 5000 steps, the result has no change with a very small value. can you help me? where have I gone wrong?

regards

@Vanint
Copy link
Owner

Vanint commented Sep 14, 2021

Hi, the performance depends on many reasons, like data split (sometimes network may learn shortcut, which is hard to explain in Deep RL), training scheme, and so on. Therefore, I have no idea about the real reason, since it, at least, does not collapse. How about downloading another piece of data for finding a more reasonable benchmark (i.e., modifying operations can lead to more significant change), which may be a solution if you cannot handle it in the end.

Yes, the negative portfolio weight is due to the leverage operation; removing it leads to all positive values.

@m1996
Copy link
Author

m1996 commented Sep 14, 2021

thank you so much
actually that the results were sooo different from what reported in the paper, was strange for me.
I will check more closely again and if I run into anything, I will bother you again:)
regards

@m1996
Copy link
Author

m1996 commented Nov 2, 2021 via email

@Vanint
Copy link
Owner

Vanint commented Nov 3, 2021

I cannot remember the convergence speed exactly, since it is quite an old project.

@m1996
Copy link
Author

m1996 commented Nov 3, 2021 via email

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

2 participants