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

model predicts equal weights in portfolio #87

Open
Amarchuk opened this issue May 15, 2018 · 8 comments
Open

model predicts equal weights in portfolio #87

Amarchuk opened this issue May 15, 2018 · 8 comments

Comments

@Amarchuk
Copy link

Hi there,

I try to apply you project for forex data. While it is obviously different from crypto market, the differences are not that big and can be neglected or solved. Interesting, that all experiments with different assets (USD-based portfolio with 10 pairs for example) produce the models, which predicts near the same weight for all pairs in portfolio on every step. I interpreted this like the model can't generalize and can't prefer one pair to another.In other words every trained agent show behaviour similar to CRP.

Generally speaking, my question is - do you have some clues/ideas why this might happen? I think about number of steps (I don't use millions - just try 15k and 80k) as an obvious candidate along with fee can be big enough (I try to shrink it size without luck) or the situation where prices itself act in unison (check that, not all pairs correlate with each other). Thanks

@dexhunter
Copy link
Collaborator

do you have some clues/ideas why this might happen?

There are many reasons this might happen. Like configuration of hyperparameters, technical bugs, etc. I am not sure what's the specific problem in your case.

I try to shrink it size without luck

What do you mean by shrink its size? Are you referring to reduce the commission fee or steps?

not all pairs correlate with each other

The assets in EIIE topology are actually independent. So I don't think that's the reason for uniform behavior.

@kumkee
Copy link
Collaborator

kumkee commented May 16, 2018

Although this is a different problem, batch normalization, proposed to solve Issue #55, would also help weight variation across the time axis.

@Amarchuk
Copy link
Author

Amarchuk commented May 16, 2018

@dexhunter Yes, I try to reduce the commission fee as possible cause of such behaviour.

There are many reasons this might happen. Like configuration of hyperparameters, technical bugs, etc. I am not sure what's the specific problem in your case.

Sure you can't, but assuming that everything is ok - it is very strange that different pairs/number of steps/initial vector allocation/fee size - all results in such models. So you doesn't experienced such equally-distributed model in any of your experiments? Interesting.

@Amarchuk
Copy link
Author

@kumkee Thanks, I read original issue and found it very informative, but not sure how batch normalization can help in my situation.

@dexhunter
Copy link
Collaborator

So you doesn't experienced such equally-distributed model in any of your experiments?

Not really, the PVM initialization is uniform, so it seems to me the uniform behavior is like the agent didn't learn anything.

@ALevitskyy
Copy link

Got the same problem after training on ForEx data from histdata.com

@Amarchuk Did you manage to figure out what`s happening?

@ALevitskyy
Copy link

After playing around with parameters, the model seems to converge to full cash and no trading after enough iterations. Seems like a good case for weak version of efficient market hypothesis or for my lack of skills

@joddm
Copy link

joddm commented Jul 21, 2018

@ALevitskyy I am experiencing the same, that either it goes full cash or around 0.8 cash. I am trying to figure out how I can restrict cash bias to 0.

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

5 participants