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

online training #39

Closed
zingomaster opened this issue Jan 6, 2018 · 8 comments
Closed

online training #39

zingomaster opened this issue Jan 6, 2018 · 8 comments

Comments

@zingomaster
Copy link

zingomaster commented Jan 6, 2018

Hello

Thanks for the wonderful work, i read your paper and almost studied most of the code. However, i don't get the concept of append_experience and agent train in the rolling_train method
I have some questions if i may ask
1- what is the format of the saved experience and how does it affect the model ?
2- how is that different from training the model directly using self._agent.train() ?
3- is the experience mentioned here the same as the mini-batches mentioned in the paper for online learning section 5.3 for example ?

thanks in advance
Sarah Ahmed

@ZhengyaoJiang
Copy link
Owner

what is the format of the saved experience

It's just the history price movement saved at self.__globaldata

how is that different from training the model directly using self._agent.train()

The only difference is the rolling train will append new history from the test set to the training set, during backtest.

@zingomaster
Copy link
Author

Thank you for your reply

The only difference is the rolling train will append new history from the test set to the training set, during backtest.

I don't understand this part clearly (the experience appending part), where is this process actually happening ? i see the append experience appends index of a training data , but how get next batch returns the last omega ? where and when is the last omega saved ?

@ZhengyaoJiang
Copy link
Owner

where and when is the last omega saved ?

self.__PVM, PVM is short for portfolio vector memory.

@zingomaster
Copy link
Author

zingomaster commented Jan 11, 2018

Thank you.

I have 1 last question please, sorry for being so much demanding.
what is the online_w in datamatrices.append_experience(self, online_w=None) ? why do we need it ?
I can see it's (number of assets + 1, ) but i don't understand
Regards,

@dexhunter
Copy link
Collaborator

what is the online_w in datamatrices.append_experience(self, online_w=None) ? why do we need it ?

I think online_w is mostly for live trading. You can probably ignore that in backtest

@zingomaster
Copy link
Author

i know it's for live trading, i meant what is it ? i don't see anything telling what is it either in the paper or in the code

@dexhunter
Copy link
Collaborator

dexhunter commented Jan 13, 2018

basically it's portfolio weight

@zingomaster
Copy link
Author

okaaay, thank you a lot :) 💯

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

3 participants